/* 스마트 골프공 전용 모바일/태블릿 레이아웃.
   모바일 브라우저의 데스크톱 표시 폭(보통 980px)까지 동일한 HTML 콘텐츠를 사용합니다. */
@media (max-width: 1000px) {
  :root {
    --smartball-content-max: 1200px;
    --smartball-gutter: clamp(18px, 5.2vw, 24px);
    --smartball-container: min(
      calc(100% - (var(--smartball-gutter) * 2)),
      var(--smartball-content-max)
    );
    --smartball-type-display: clamp(36px, 11.2vw, 48px);
    --smartball-type-title: clamp(27px, 8vw, 34px);
    --smartball-type-subtitle: clamp(19px, 5.6vw, 23px);
    --smartball-type-lead: clamp(16px, 4.5vw, 19px);
    --smartball-type-body: clamp(14px, 4vw, 17px);
    --smartball-section-space: clamp(68px, 18vw, 92px);
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    top: 12px;
    width: var(--smartball-container);
    padding: 9px 10px 9px 14px;
    gap: 10px;
    overflow: visible;
    justify-content: flex-start;
    border-radius: 22px;
  }

  .site-header .logo img {
    height: clamp(22px, 6.4vw, 24px);
  }

  .header-tools {
    margin-left: auto;
    gap: 6px;
  }

  .language-button {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .language-caret {
    display: none;
  }

  .language-menu {
    top: calc(100% + 8px);
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
  }

  .menu-toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    padding: 10px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(12, 19, 31, .97);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .42);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  }

  .site-header.is-menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .main-nav ul {
    width: 100%;
    display: grid;
    gap: 2px;
  }

  .site-header .main-nav li {
    width: 100%;
  }

  .site-header .main-nav a,
  .site-header .about-trigger {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    font-size: 15px;
  }

  .site-header .main-nav a:hover,
  .site-header .main-nav a:focus-visible,
  .site-header .about-trigger:hover,
  .site-header .about-trigger:focus-visible {
    background: rgba(49, 230, 223, .1);
  }

  .site-header .about-dropdown {
    position: static;
    width: 100%;
    padding-top: 4px;
    display: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-header .about-menu.is-about-open .about-dropdown {
    display: block;
  }

  .site-header .about-dropdown-panel {
    padding: 0 0 4px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-header .about-dropdown-panel a {
    padding-left: 18px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
  }

  .smartball-hero {
    min-height: max(560px, 100svh);
  }

  .smartball-hero video {
    object-position: center;
  }

  .design-section,
  .composed-section {
    width: 100%;
    padding: var(--smartball-section-space) 0;
  }

  .section-shell,
  .anatomy-stage,
  .cta-copy,
  .footer-grid {
    width: var(--smartball-container) !important;
    max-width: var(--smartball-content-max) !important;
    margin-inline: auto !important;
  }

  .section-heading,
  .anatomy-title,
  .system-intro .accent,
  .system-copy h3,
  .field-kicker {
    font-size: var(--smartball-type-title) !important;
    line-height: 1.24 !important;
    letter-spacing: -.035em;
    white-space: normal;
    text-wrap: balance;
  }

  .section-lead,
  .section-points,
  .field-summary {
    font-size: var(--smartball-type-lead) !important;
    line-height: 1.65;
  }

  /* 섹션 1: PC 구성의 비율과 오버레이 위치를 그대로 축소합니다. */
  .anatomy-section {
    padding: var(--smartball-section-space) 0;
  }

  .anatomy-stage {
    position: relative;
    width: var(--smartball-container) !important;
    max-width: var(--smartball-content-max) !important;
    margin-inline: auto !important;
    aspect-ratio: auto;
    display: block;
    overflow: visible;
  }

  .anatomy-visual {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: clamp(30px, 9vw, 54px);
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 5.5vw, 28px);
    overflow: visible;
  }

  .anatomy-image-frame {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: 118%;
    margin-inline: -9%;
    aspect-ratio: 8 / 5;
  }

  .anatomy-image-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .anatomy-markers {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .anatomy-markers span {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: clamp(20px, 5.6vw, 24px);
    height: clamp(20px, 5.6vw, 24px);
    border-radius: 50%;
    background: var(--cyan);
    color: #07101c;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 800;
    line-height: 1;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px rgba(7, 12, 23, .72);
  }

  .marker-cover { top: 87%; left: 26.7%; }
  .marker-layer { top: 45%; left: 32.1%; }
  .marker-shell { top: 79%; left: 50.6%; }
  .marker-elastomer { top: 36%; left: 57%; }

  .anatomy-heading {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    text-align: center;
  }

  .anatomy-title {
    font-family: inherit;
    font-size: var(--smartball-type-title) !important;
    line-height: 1.24 !important;
    word-break: keep-all;
  }

  .anatomy-subtitle {
    margin: clamp(8px, 2.4vw, 14px) auto 0;
    max-width: 100%;
    font-family: inherit;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.6;
    word-break: keep-all;
  }

  .anatomy-copy,
  .anatomy-layer,
  .anatomy-elastomer,
  .anatomy-shell,
  .anatomy-cover {
    position: static;
    inset: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    width: 100%;
  }

  .anatomy-cover { order: 2; }
  .anatomy-layer { order: 3; }
  .anatomy-shell { order: 4; }
  .anatomy-elastomer { order: 5; }

  .anatomy-copy-number {
    display: inline-grid;
    place-items: center;
    width: clamp(20px, 5.6vw, 24px);
    height: clamp(20px, 5.6vw, 24px);
    border-radius: 50%;
    background: var(--cyan);
    color: #07101c;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 800;
    line-height: 1;
    margin-right: 9px;
    vertical-align: middle;
  }

  .anatomy-copy h3 {
    font-family: inherit;
    font-size: var(--smartball-type-body);
    line-height: 1.35;
    word-break: keep-all;
  }

  .anatomy-copy p {
    margin-top: 8px;
    font-family: inherit;
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.65;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .spec-grid {
    gap: 12px;
    margin-top: 42px;
  }

  .spec-card {
    padding: 10px;
    border-radius: 16px;
  }

  .spec-value {
    display: none;
  }

  .system-section {
    min-height: auto;
    background-size: max(680px, 190vw) auto;
    background-position: right bottom;
    background-repeat: no-repeat;
  }

  .distance-section {
    min-height: auto;
    background-size: max(680px, 190vw) auto;
    background-position: right top;
    background-repeat: no-repeat;
  }

  .system-stage {
    gap: 36px;
  }

  .system-intro,
  .system-copy {
    text-align: center;
  }

  .system-intro {
    grid-row: 1;
  }

  .system-card.primary {
    grid-row: 2;
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .system-copy {
    grid-row: 3;
  }

  .system-charger-visual {
    grid-row: 4;
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .system-intro .system-subtitle,
  .system-intro .system-description {
    margin-top: 12px;
    font-size: var(--smartball-type-body) !important;
    line-height: 1.55;
    white-space: normal;
  }

  .system-copy > p {
    margin-top: 14px;
    font-size: var(--smartball-type-subtitle);
    line-height: 1.5;
  }

  .system-notes {
    width: 100%;
    margin-top: 16px;
    padding-left: 0;
    list-style-position: inside;
    font-size: var(--smartball-type-body);
    line-height: 1.65;
    text-align: center;
  }

  .practice-grid {
    gap: 20px;
    margin-top: 42px;
  }

  .distance-section .section-shell,
  .slope-section .section-shell {
    text-align: center;
  }

  .practice-card {
    border-width: 1px;
    border-radius: 16px;
  }

  .section-points {
    margin-top: 22px;
    text-align: center;
  }

  .section-points li {
    display: block;
  }

  .section-points li::before {
    margin-right: 0;
  }

  .field-section {
    min-height: auto;
    padding: var(--smartball-section-space) 0;
    background-position: 68% center;
  }

  .field-heading {
    width: 100%;
    text-align: center;
  }

  .field-panel {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1027 / 738;
    margin-top: 38px;
    padding: 5.8%;
    overflow: hidden;
  }

  .field-summary {
    margin-top: 8px;
    font-size: clamp(9px, 2.7vw, 12px) !important;
  }

  .field-kicker {
    font-size: clamp(16px, 4.5vw, 20px) !important;
  }

  .field-features {
    gap: 3px;
    margin-top: 8px;
  }

  .field-feature {
    min-height: 0;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 3px 0;
  }

  .field-feature:nth-child(2) {
    display: grid;
  }

  .field-feature img {
    width: 22px;
    height: 22px;
  }

  .field-feature h3,
  .field-badge strong {
    font-size: clamp(9px, 2.8vw, 12px);
  }

  .field-feature p,
  .field-badge span {
    margin-top: 2px;
    font-size: clamp(7px, 2.15vw, 10px);
    line-height: 1.3;
  }

  .field-badges {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 7px;
  }

  .field-badge {
    min-height: 0;
    padding: 4px;
  }

  /* 섹션 7: 별도의 모바일 재구성 없이 PC 합성 화면을 같은 비율로 표시합니다. */
  .battle-section {
    padding: 0;
  }

  .battle-canvas {
    width: min(calc((100% - (var(--smartball-gutter) * 2)) * 1.136364), 1818.182px);
  }

  .battle-copy-mask {
    display: none;
  }

  .battle-face.player-a {
    top: 35.25%;
  }

  .battle-face.player-b {
    top: 65.1%;
  }

  .cta {
    min-height: clamp(360px, 105vw, 460px) !important;
  }

  .cta h2 {
    font-size: clamp(24px, 6.8vw, 30px) !important;
  }

  .cta p {
    font-size: clamp(14px, 3.8vw, 16px) !important;
  }

  .site-footer {
    padding: 52px 0 40px;
  }

  .footer-grid {
    gap: 34px;
  }
}

/* 모바일 전용 대결 구성은 데스크톱에서 숨깁니다. */
.battle-mobile {
  display: none;
}

@media (max-width: 1000px) {
  /* 섹션 2: 원본 이미지의 하단 문구는 잘라내고 편집 가능한 HTML 문구를 사용합니다. */
  .spec-value {
    display: block;
    left: 6px;
    right: 6px;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .spec-card-media img {
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  /* 섹션 3: 설명, 큰 제품 이미지, 충전 시스템 순으로 정렬합니다. */
  .system-card.primary {
    width: min(calc(100% + 32px), 520px);
    margin-inline: auto;
    justify-self: center;
  }

  .system-notes {
    padding-left: 0;
    list-style: none;
  }

  /* 섹션 4·5: 시작점을 없애고 세부 문장 간격을 조입니다. */
  .section-points li + li {
    margin-top: 6px;
  }

  .section-points li::before {
    display: none;
  }

  /* 섹션 6: PC 합성 패널 대신 내용에 맞춰 늘어나는 모바일 패널을 사용합니다. */
  .field-panel {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    margin-top: 38px;
    padding: 24px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 22px;
    background: rgba(9, 20, 30, .3);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .3);
  }

  .field-panel-frame {
    display: none;
  }

  .field-summary {
    margin-top: 12px;
    font-size: var(--smartball-type-body) !important;
  }

  .field-kicker {
    font-size: clamp(22px, 6.4vw, 28px) !important;
  }

  .field-features {
    gap: 12px;
    margin-top: 24px;
  }

  .field-feature,
  .field-feature:nth-child(2) {
    min-height: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    background: rgba(9, 20, 30, .3);
  }

  .field-feature img {
    width: 32px;
    height: 32px;
  }

  .field-feature h3,
  .field-badge strong {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  .field-feature p,
  .field-badge span {
    margin-top: 6px;
    font-size: clamp(13px, 3.6vw, 15px);
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .field-badges {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .field-badge {
    min-height: 0;
    padding: 14px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(9, 20, 30, .3);
  }

  /* 섹션 7: 합성 이미지의 텍스트와 박스를 모바일 요소로 교체합니다. */
  .battle-section {
    padding: var(--smartball-section-space) 0;
  }

  .battle-canvas {
    display: none;
  }

  .battle-mobile {
    width: var(--smartball-container);
    margin-inline: auto;
    display: block;
  }

  .battle-mobile-copy {
    text-align: center;
  }

  .battle-mobile-copy h2 {
    margin: 0;
    font-size: var(--smartball-type-title);
    line-height: 1.25;
    text-wrap: balance;
  }

  .battle-mobile-copy p {
    margin: 14px 0 0;
    color: #d6dbe3;
    font-size: var(--smartball-type-body);
    line-height: 1.55;
  }

  .battle-mobile-panel {
    margin-top: 34px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 22px;
    background: rgba(9, 16, 22, .3);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .32);
    backdrop-filter: blur(12px);
  }

  .battle-mobile-panel > h3 {
    margin: 0 0 16px;
    padding: 13px 10px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 13px;
    color: var(--cyan);
    font-size: clamp(18px, 5vw, 22px);
    text-align: center;
  }

  .battle-mobile-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .battle-mobile-players article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
    text-align: center;
    background: rgba(0, 0, 0, .3);
  }

  .battle-mobile-players img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 35%;
  }

  .battle-mobile-players strong,
  .battle-mobile-players article span {
    display: block;
    padding-inline: 4px;
  }

  .battle-mobile-players strong {
    padding-block: 8px 6px;
    border-bottom: 2px solid var(--cyan);
    font-size: 14px;
  }

  .battle-mobile-players article span {
    color: #d9dde3;
    font-size: 10px;
    line-height: 1.45;
  }

  .battle-mobile-players article strong + span {
    padding-top: 6px;
  }

  .battle-mobile-players article span:last-child {
    padding-bottom: 8px;
  }

  .battle-mobile-versus {
    font-size: 22px;
    font-weight: 700;
  }

  .battle-mobile-ranking {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 14px;
  }

  .battle-mobile-row {
    display: grid;
    grid-template-columns: .7fr 1.7fr .9fr;
    min-height: 42px;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }

  .battle-mobile-row:first-child {
    border-top: 0;
  }

  .battle-mobile-row > * {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 7px 3px;
    border-left: 1px solid rgba(255, 255, 255, .2);
    font-size: clamp(10px, 3vw, 13px);
    font-style: normal;
    text-align: center;
  }

  .battle-mobile-row > :first-child {
    border-left: 0;
  }

  .battle-mobile-head {
    color: var(--cyan);
    font-weight: 700;
    background: rgba(9, 16, 22, .3);
  }

  .battle-mobile-row em {
    color: var(--cyan);
    font-weight: 700;
  }

  .mobile-copy-break {
    display: block;
  }
}

@media (min-width: 1001px) {
  .mobile-copy-break {
    display: none;
  }
}
