/* KEYOS Mobile — Design width: 750px, breakpoint: 768px */

@media (max-width: 768px) {
  .ko-canvas--desktop {
    display: none !important;
  }

  .ko-canvas--mobile {
    display: block;
    width: 750px;
    position: relative;
    zoom: var(--ko-zoom, 1);
  }
}

@media (min-width: 769px) {
  .ko-canvas--mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .kom-section {
    position: relative;
    width: 750px;
    height: 1333px;
    overflow: hidden;
  }

  .kom-section--scroll {
    height: 4000px;
    overflow: visible;
  }

  .kom-sticky {
    position: sticky;
    top: 0;
    width: 750px;
    height: 1333px;
    overflow: hidden;
  }

  .kom-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  /* Typography */
  .kom-label {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: normal;
    background: linear-gradient(90deg, #ffb766 0%, #a65d02 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .kom-heading {
    font-size: 72px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    line-height: 60px;
  }

  .kom-heading--white { color: #fff; }

  .kom-body {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #000;
  }

  .kom-body--white { color: #fff; }

  .kom-text-top {
    position: absolute;
    z-index: 5;
    left: 66px;
    top: 100px;
    width: 618px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .kom-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  /* Reveal Animation */
  .kom-reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--kom-reveal-delay, 0s);
    will-change: opacity, transform;
  }

  .kom-reveal.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .kom-feature-label.kom-reveal,
  .kom-parameters-title.kom-reveal {
    transform: translate3d(-50%, 36px, 0);
  }

  .kom-feature-label.kom-reveal.is-revealed,
  .kom-parameters-title.kom-reveal.is-revealed {
    transform: translate3d(-50%, 0, 0);
  }

  @media (prefers-reduced-motion: reduce) {
    .kom-reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .kom-feature-label.kom-reveal,
    .kom-parameters-title.kom-reveal {
      transform: translate3d(-50%, 0, 0);
    }
  }

  /* Hero */
  .kom-hero {
    background: linear-gradient(97.61deg, rgb(253, 199, 137) 6.63%, rgb(189, 120, 53) 93.92%);
  }

  .kom-hero-leaf {
    position: absolute;
    left: calc(50% + 0.5px);
    top: calc(50% + 87.5px);
    width: 595px;
    height: 486px;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    will-change: opacity, transform;
  }

  .kom-hero-hand {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 750px;
    height: 815px;
    transform: translateX(-50%);
    object-fit: cover;
    z-index: 4;
    will-change: transform, opacity;
  }

  .kom-hero-header {
    position: absolute;
    left: 50%;
    top: 122px;
    width: 649px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
  }

  .kom-hero-logo {
    width: 460px;
    height: 78px;
    object-fit: cover;
    will-change: transform, opacity;
  }

  .kom-hero-tagline {
    width: 100%;
    font-weight: 100;
    font-size: 30px;
    line-height: normal;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    will-change: transform, opacity;
  }

  .kom-hero-title {
    position: absolute;
    left: calc(50% + 0.5px);
    top: 335px;
    transform: translateX(-50%);
    font-family: 'Herculine', sans-serif;
    font-size: 140px;
    line-height: 1;
    color: #863f0a;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    will-change: opacity, transform;
  }

  /* Features Grid */
  .kom-features {
    background: #fff;
  }

  .kom-features-grid {
    position: absolute;
    left: calc(50% + 0.5px);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 673px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .kom-features-row {
    display: flex;
    gap: 20px;
    width: 100%;
  }

  .kom-feature-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    background: #efefef;
  }

  .kom-feature-card--sm {
    width: 325px;
    height: 400px;
  }

  .kom-feature-card--wide {
    width: 100%;
    height: 325px;
  }

  .kom-feature-card-hover-zoom .kom-feature-card-inner {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .kom-feature-card-hover-zoom {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .kom-feature-card-hover-zoom:hover .kom-feature-card-inner,
  .kom-feature-card-hover-zoom.is-touch-active .kom-feature-card-inner {
    transform: scale(1.06);
  }

  @media (prefers-reduced-motion: reduce) {
    .kom-feature-card-hover-zoom .kom-feature-card-inner {
      transition: none;
    }

    .kom-feature-card-hover-zoom:hover .kom-feature-card-inner,
    .kom-feature-card-hover-zoom.is-touch-active .kom-feature-card-inner {
      transform: none;
    }
  }

  .kom-feature-label {
    position: absolute;
    z-index: 2;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: normal;
    pointer-events: none;
    background: linear-gradient(90deg, #ffb766 0%, #a65d02 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
  }

  .kom-feature-label--wrap {
    white-space: normal;
    width: 280px;
  }

  /* 360 */
  .kom-360 {
    background: #fff;
  }

  .kom-360-card {
    position: absolute;
    left: 50%;
    top: calc(50% + 0.5px);
    transform: translate(-50%, -50%);
    width: 600px;
    height: 1100px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(212.23deg, rgb(253, 199, 137) 8.43%, rgb(195, 128, 60) 96.06%);
  }

  .kom-360-header {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 82px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
  }

  .kom-360-icon {
    width: 43px;
    height: 50px;
    object-fit: cover;
  }

  .kom-360-title {
    font-size: 40px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .kom-360-product {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: calc(50% - 14px);
    transform: translate(-50%, -50%);
    width: 168px;
    height: 653px;
    cursor: grab;
    touch-action: none;
    user-select: none;
  }

  .kom-360-product.is-dragging { cursor: grabbing; }

  .kom-360-product img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
  }

  .kom-360-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }

  .kom-control-item {
    flex: 0 0 124px;
    width: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
  }

  .kom-control-btn {
    width: 65px;
    height: 65px;
    padding: 0;
    background: transparent;
    display: block;
    flex-shrink: 0;
  }

  .kom-control-btn img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    pointer-events: none;
    display: block;
  }

  .kom-control-item span {
    width: 100%;
    font-family: Inter, sans-serif;
    font-size: 26px;
    font-weight: 300;
    color: #000;
    text-align: center;
    white-space: nowrap;
  }

  /* Lifestyle（卡屏 A→B + 文案上浮） */
  .kom-lifestyle {
    background: #000;
  }

  .kom-lifestyle-media {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .kom-lifestyle-bg,
  .kom-lifestyle-a {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .kom-lifestyle-intro {
    position: absolute;
    inset: 0;
    z-index: 2;
    will-change: opacity;
  }

  .kom-lifestyle-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
  }

  .kom-lifestyle-label,
  .kom-lifestyle-perfect,
  .kom-lifestyle-companion,
  .kom-lifestyle-desc {
    position: absolute;
    left: 50%;
    transform: translate3d(-50%, 50px, 0);
    text-align: center;
    margin: 0;
    opacity: 0;
    will-change: transform, opacity;
  }

  .kom-lifestyle-label {
    top: 464px;
    width: 676px;
  }

  .kom-lifestyle-perfect {
    top: 533px;
    width: 620px;
    font-size: 138px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: normal;
  }

  .kom-lifestyle-companion {
    top: 686px;
    width: 620px;
    font-size: 50px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: normal;
  }

  .kom-lifestyle-desc {
    top: 796px;
    width: 676px;
    font-size: 20px;
    color: #fff;
    line-height: normal;
    text-transform: capitalize;
  }

  /* Double Hit */
  .kom-double-hit {
    background: #fff;
  }

  .kom-double-fruit {
    position: absolute;
    left: 107px;
    top: 371px;
    width: 500px;
    height: 460px;
    object-fit: cover;
    z-index: 1;
  }

  .kom-double-device {
    position: absolute;
    left: 302px;
    top: 419px;
    width: 110px;
    height: 800px;
    object-fit: cover;
    z-index: 3;
  }

  .kom-double-tobacco {
    position: absolute;
    left: 107px;
    top: 831px;
    width: 500px;
    height: 460px;
    object-fit: cover;
    pointer-events: none;
  }

  .kom-double-tobacco--back {
    z-index: 2;
  }

  .kom-double-tobacco--front {
    z-index: 4;
  }

  /* Taste Rush */
  .kom-rush-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .kom-rush-smoke-wrap {
    position: absolute;
    z-index: 1;
    left: 240px;
    top: 192px;
    width: 255px;
    height: 424px;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }

  .kom-rush-smoke {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .kom-rush-device-wrap {
    position: absolute;
    z-index: 3;
    left: 298px;
    top: 525px;
    width: 154px;
    height: 607px;
    opacity: 0;
    will-change: transform, opacity;
  }

  .kom-rush-device {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .kom-rush-cigarette-wrap {
    position: absolute;
    z-index: 2;
    left: 347px;
    bottom: 0;
    width: 56px;
    height: 299px;
    opacity: 0;
    will-change: transform, opacity;
  }

  .kom-rush-cigarette {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Battery */
  .kom-battery {
    background: #fff;
  }

  .kom-battery .kom-text-top {
    left: 41px;
    width: 668px;
    gap: 20px;
  }

  .kom-battery .kom-text-group {
    gap: 0;
  }

  .kom-battery .kom-heading {
    margin-bottom: -11px;
  }

  .kom-battery .kom-text-group .kom-label {
    font-size: 72px;
    line-height: normal;
  }

  .kom-battery-visual {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .kom-battery-device-wrap {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 438px;
    width: 152px;
    height: 600px;
    transform: translateX(-50%);
    opacity: 0;
    will-change: transform, opacity;
  }

  .kom-battery-device {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .kom-battery-cigarette-wrap {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 940px;
    width: 62px;
    height: 393px;
    transform: translate(-50%, 0);
    opacity: 0;
    will-change: transform, opacity;
  }

  .kom-battery-cigarette {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .kom-battery-x12 {
    position: absolute;
    z-index: 0;
    left: 420px;
    top: 1018px;
    width: 534px;
    height: 266px;
    transform: translateX(-50%);
    font-family: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 270px;
    font-weight: 100;
    font-synthesis: none;
    color: #a66fd4;
    text-align: center;
    text-transform: uppercase;
    line-height: normal;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
  }

  /* Puffs */
  .kom-puffs-text {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: calc(50% - 418.5px);
    transform: translate(-50%, -50%);
    width: 684px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .kom-puffs-text .kom-text-group {
    gap: 15px;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .kom-puffs-text .kom-label,
  .kom-puffs-text .kom-heading {
    text-align: center;
    width: 100%;
  }

  /* Flavors */
  .kom-flavors {
    background: #fff;
  }

  .kom-flavors-header {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 694px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .kom-flavors-title {
    font-size: 72px;
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    line-height: 60px;
  }

  .kom-flavors-carousel {
    position: absolute;
    left: 50%;
    top: 420px;
    transform: translateX(-50%);
    width: 750px;
    height: 780px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kom-flavors-viewport {
    width: 500px;
    height: 780px;
    border-radius: 30px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
  }

  .kom-flavors-viewport.is-dragging { cursor: grabbing; }

  .kom-flavors-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .kom-flavor-card {
    width: 500px;
    height: 780px;
    flex-shrink: 0;
    border-radius: 30px;
    overflow: hidden;
  }

  .kom-flavor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kom-flavors-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 37px;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    z-index: 2;
  }

  .kom-flavors-nav--prev { left: 40px; }
  .kom-flavors-nav--next { right: 40px; transform: translateY(-50%) rotate(180deg); }

  .kom-flavors-nav img {
    width: 21px;
    height: 37px;
    object-fit: contain;
  }

  .kom-flavors-dots {
    position: absolute;
    left: 50%;
    top: 1250px;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 266px;
  }

  .kom-dot {
    width: 8px;
    height: 8px;
    background: #b4b4b4;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  }

  .kom-dot--active {
    width: 50px;
    height: 8px;
    border-radius: 4px;
    background: #000;
  }

  /* Parameters */
  .kom-parameters {
    background: #fff;
  }

  .kom-parameters-title {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 60px;
    width: 670px;
  }

  .kom-parameters-tags {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 1055px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 31px;
    width: 400px;
  }

  .kom-tag {
    width: 350px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 22.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 9px 60px 8px;
  }

  .kom-tag--wide { width: 400px; }
}
