/* ==========================================================================
   紅果短劇純淨版｜香港短劇 APP 下載落地頁
   Warm minimal · Mobile-first · No video playback
   ========================================================================== */

:root {
  /* 品牌色（依指定色票） */
  --brand-primary: #ff5248;
  --brand-secondary: #ff874b;
  --brand-dark: #e53b3b;
  --brand-ink: #c9343a;

  --background-main: #ffffff;
  --background-warm: #fff9f6;
  --background-soft: #fff0eb;

  --text-primary: #202432;
  --text-secondary: #667080;
  --text-tertiary: #7a818d;
  --line-soft: #f6efec;

  --reward-background: #fff5ee;
  --reward-border: #ffd9c9;

  /* 指定漸層為 #FF7045 → #FF414B；起始色輕微調深，確保白字可讀。 */
  --button-gradient: linear-gradient(135deg, #f2663c 0%, #ff414b 100%);
  --button-gradient-spec: linear-gradient(135deg, #ff7045 0%, #ff414b 100%);

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
    "Heiti TC", "Microsoft YaHei", sans-serif;

  --radius-card: 20px;
  --radius-button: 15px;
  --shadow-card: 0 16px 38px rgba(113, 58, 38, 0.075);
  --shadow-button: 0 14px 30px rgba(219, 59, 61, 0.25);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  margin: 0;
  background: var(--background-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
p,
ol {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(255, 82, 72, 0.72);
  outline-offset: 3px;
}

::selection {
  background: #ffe1db;
  color: var(--text-primary);
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 9px 15px;
  border-radius: 9px;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: translateY(-170%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Preview banner
   -------------------------------------------------------------------------- */
.preview-banner {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #f1d8a5;
  background: #fff6df;
  color: #6b4a16;
  font-size: 0.71rem;
  line-height: 1.5;
  text-align: center;
}

.preview-banner__tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: #855a17;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(240, 230, 225, 0.86);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(70, 45, 35, 0.065);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 40px), 1120px);
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.footer-mark,
.sticky-mark {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--brand-primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.footer-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.sticky-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand-mark img,
.footer-mark img,
.sticky-mark img,
.app-icon img,
.screen-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.is-error img,
.footer-mark.is-error img,
.sticky-mark.is-error img,
.app-icon.is-error img,
.screen-logo.is-error {
  display: none;
}

.brand-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark.is-error .brand-fallback,
.footer-mark.is-error .brand-fallback,
.sticky-mark.is-error .brand-fallback,
.app-icon.is-error .brand-fallback {
  display: grid;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}

.brand-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.62rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-download {
  display: inline-flex;
  min-height: 35px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--brand-ink);
  box-shadow: 0 4px 12px rgba(201, 52, 58, 0.15);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.header-download:disabled {
  background: #fbe6e2;
  box-shadow: none;
  color: #83403d;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Main / hero background
   -------------------------------------------------------------------------- */
.site-main {
  position: relative;
  display: flex;
  width: 100%;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 28%, rgba(255, 116, 83, 0.12), transparent 38%),
    radial-gradient(circle at 15% 70%, rgba(255, 180, 130, 0.09), transparent 42%),
    linear-gradient(180deg, #fff9f6 0%, #ffffff 75%);
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 23px 20px 32px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bg-glow--one {
  top: -120px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: rgba(255, 116, 83, 0.1);
  filter: blur(60px);
}

.bg-glow--two {
  bottom: -170px;
  left: -140px;
  width: 430px;
  height: 430px;
  background: rgba(255, 180, 130, 0.1);
  filter: blur(66px);
}

.bg-play {
  position: absolute;
  top: 32%;
  left: 2.5%;
  width: 210px;
  height: 250px;
  background: var(--brand-primary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.035;
  transform: rotate(-9deg);
}

.bg-timeline {
  position: absolute;
  bottom: 10%;
  left: 3%;
  display: flex;
  width: 320px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed rgba(200, 78, 62, 0.25);
  opacity: 0.5;
}

.bg-timeline i {
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(214, 83, 66, 0.55);
}

/* --------------------------------------------------------------------------
   Hero layout
   -------------------------------------------------------------------------- */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 1120px);
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
  max-width: 560px;
  text-align: center;
  animation: copy-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.app-icon {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--brand-primary);
  box-shadow: 0 10px 25px rgba(112, 53, 31, 0.17);
}

.app-icon__fallback {
  font-size: 1.7rem;
}

.hero-brand-copy {
  text-align: left;
}

.app-name {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.app-subtitle {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.45;
}

.genre-tag {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 10px;
  border: 1px solid #ffe0d6;
  border-radius: 999px;
  background: rgba(255, 240, 235, 0.88);
  color: #91483e;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.4;
}

.genre-tag .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--brand-primary);
}

.hero-title {
  max-width: 760px;
  margin-top: 12px;
  color: var(--text-primary);
  font-size: clamp(2rem, 8.4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.16;
  text-wrap: balance;
}

.headline-first,
.headline-accent {
  display: block;
}

.headline-accent {
  color: var(--brand-primary);
}

.hero-subtitle {
  max-width: 560px;
  margin: 9px auto 0;
  color: #46505f;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
}

.hero-description {
  max-width: 540px;
  margin: 3px auto 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Reward card
   -------------------------------------------------------------------------- */
.reward-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--reward-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 54%),
    var(--reward-background);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.reward-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f3b96d, transparent);
  opacity: 0.75;
}

.reward-eyebrow {
  color: #985248;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.reward-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 4px;
}

.reward-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  color: var(--brand-primary);
  line-height: 0.9;
}

.reward-currency {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.reward-number {
  font-size: 3.7rem;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.reward-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #ffd6c6;
  border-radius: 999px;
  background: #ffe8dd;
  color: #9b3c35;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.reward-claim {
  margin-top: 5px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.reward-sub {
  margin-top: 2px;
  color: #6a554c;
  font-size: 0.75rem;
  line-height: 1.55;
}

.reward-steps {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  text-align: left;
}

.reward-steps li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 5px;
  border-top: 1px dashed rgba(215, 149, 126, 0.36);
}

.reward-steps li:first-child {
  border-top: 0;
}

.step-label {
  flex: none;
  padding: 2px 4px;
  border-radius: 4px;
  background: #fff0e7;
  color: #a0433b;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.step-copy {
  color: #544a46;
  font-size: 0.73rem;
  line-height: 1.55;
}

.reward-withdraw-meta {
  margin-top: 5px;
  color: #6f625b;
  font-size: 0.66rem;
  line-height: 1.55;
}

.reward-terms {
  display: inline-flex;
  margin-top: 4px;
  color: #973c37;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reward-terms.is-placeholder {
  color: #776c67;
  text-decoration: none;
  cursor: default;
}

.reward-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 8px;
}

.reward-pending-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reward-pending-copy {
  color: var(--text-secondary);
  font-size: 0.74rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */
.download-block {
  width: 100%;
  max-width: 520px;
  margin: 16px auto 0;
}

.download-button {
  display: inline-flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: var(--radius-button);
  background: var(--button-gradient);
  box-shadow: var(--shadow-button);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1;
  transition:
    transform 0.16s ease,
    box-shadow var(--transition),
    filter var(--transition);
}

.download-button .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.download-button:active:not(:disabled) {
  box-shadow: 0 6px 16px rgba(191, 48, 52, 0.22);
  transform: translateY(1px);
}

.download-button:disabled {
  background: linear-gradient(135deg, #f6d7d0 0%, #f3c9c6 100%);
  box-shadow: none;
  color: #7d3c39;
  cursor: not-allowed;
}

.download-note {
  min-height: 18px;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}

.download-note.is-pending {
  color: #82564e;
  font-weight: 500;
}

.download-note.is-notice {
  color: #8a4d36;
  font-weight: 600;
}

.google-play-slot {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.google-play-slot a {
  display: inline-flex;
  border-radius: 7px;
  line-height: 0;
}

.google-play-slot img {
  width: auto;
  height: 48px;
  border-radius: 7px;
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.benefit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 13px;
  margin-top: 15px;
}

.benefit-row li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #596370;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.benefit-row .icon {
  width: 15px;
  height: 15px;
  color: var(--brand-primary);
  stroke-width: 1.9;
}

.nojs-note {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Hero visual (desktop only)
   -------------------------------------------------------------------------- */
.hero-visual {
  display: none;
}

.visual-stage {
  position: relative;
  width: min(100%, 450px);
  min-height: 530px;
}

/* 抽象電影菲林孔，不作畫面內容 */
.visual-stage::before,
.visual-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 20%;
  width: 7px;
  height: 56%;
  background-image: radial-gradient(circle, rgba(204, 106, 79, 0.46) 1.35px, transparent 1.8px);
  background-size: 7px 18px;
  opacity: 0.65;
  pointer-events: none;
}

.visual-stage::before {
  left: 3%;
}

.visual-stage::after {
  right: 3%;
}

.visual-glow {
  position: absolute;
  top: 15%;
  left: 12%;
  width: 78%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 88, 0.22), transparent 68%);
  filter: blur(28px);
}

.visual-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.visual-orbit--one {
  top: 27px;
  left: 32px;
  width: 378px;
  height: 378px;
  border: 1px dashed rgba(222, 102, 74, 0.22);
}

.visual-orbit--two {
  top: 91px;
  left: 94px;
  width: 254px;
  height: 254px;
  border: 1px solid rgba(255, 135, 75, 0.2);
}

.phone-device {
  position: absolute;
  top: 50%;
  left: 51%;
  width: 236px;
  height: 480px;
  padding: 9px;
  border: 1px solid #f3d4c8;
  border-radius: 41px;
  background: linear-gradient(155deg, #fffdfb 0%, #ffeadf 100%);
  box-shadow:
    0 36px 65px rgba(112, 52, 29, 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) rotate(6deg);
  animation: device-float 6s ease-in-out infinite;
}

@keyframes device-float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(6deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 7px)) rotate(4.5deg);
  }
}

.phone-notch {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  width: 70px;
  height: 17px;
  border-radius: 999px;
  background: #34221f;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 240, 210, 0.5), transparent 30%),
    linear-gradient(155deg, #ff8f5d 0%, #ff5e4e 47%, #e83a50 100%);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 84px rgba(255, 255, 255, 0.025);
}

.screen-glow {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 245, 220, 0.22);
  filter: blur(24px);
  transform: translate(-50%, -50%);
}

.screen-logo {
  position: absolute;
  z-index: 3;
  top: 76px;
  left: 50%;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  box-shadow: 0 9px 22px rgba(120, 30, 25, 0.18);
  transform: translateX(-50%);
}

.screen-logo.is-error {
  display: none;
}

.screen-play {
  position: absolute;
  z-index: 2;
  top: 47%;
  left: 50%;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  color: rgba(255, 255, 255, 0.36);
  transform: translate(-50%, -50%);
}

.screen-play svg {
  width: 78px;
  height: 78px;
  fill: currentColor;
}

.screen-wave {
  position: absolute;
  right: 34px;
  bottom: 70px;
  left: 34px;
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.screen-wave i {
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.screen-wave i:nth-child(1) {
  height: 12px;
}

.screen-wave i:nth-child(2) {
  height: 24px;
}

.screen-wave i:nth-child(3) {
  height: 37px;
}

.screen-wave i:nth-child(4) {
  height: 19px;
}

.screen-wave i:nth-child(5) {
  height: 30px;
}

.screen-wave i:nth-child(6) {
  height: 17px;
}

.screen-wave i:nth-child(7) {
  height: 9px;
}

.screen-time {
  position: absolute;
  right: 35px;
  bottom: 48px;
  left: 35px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.26);
}

.screen-time i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
}

.visual-chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 13px 28px rgba(95, 53, 38, 0.12);
  color: #653d33;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: chip-float 6.5s ease-in-out infinite;
}

.visual-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}

.visual-chip--top {
  top: 8%;
  right: 0;
}

.visual-chip--bottom {
  bottom: 9%;
  left: 3%;
  animation-delay: -2.5s;
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.footer-inner {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 22px 0 calc(24px + env(safe-area-inset-bottom));
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3c414d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 16px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.6;
}

.footer-links li {
  display: inline-flex;
  align-items: center;
}

.footer-links a {
  color: #5d6673;
  text-underline-offset: 2px;
}

.footer-links .is-pending {
  color: #716d69;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #f6efec;
  text-align: center;
}

.footer-operator {
  color: #666a72;
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer-note {
  max-width: 760px;
  color: #74716d;
  font-size: 0.66rem;
  line-height: 1.7;
}

.copyright {
  color: #7a7571;
  font-size: 0.65rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Sticky mobile download bar
   -------------------------------------------------------------------------- */
.sticky-download {
  display: none;
}

@keyframes bar-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Hover
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .header-download:not(:disabled):hover {
    background: #b92e38;
    box-shadow: 0 7px 16px rgba(185, 46, 56, 0.19);
    transform: translateY(-1px);
  }

  .download-button:not(:disabled):hover {
    box-shadow: 0 18px 34px rgba(219, 59, 61, 0.29);
    filter: brightness(1.025);
    transform: translateY(-1px);
  }

  .footer-links a:hover {
    color: var(--brand-ink);
    text-decoration: underline;
  }

  .reward-terms:hover {
    color: var(--brand-deep, #8e2f38);
  }
}

/* --------------------------------------------------------------------------
   Desktop / tablet layout
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.64rem;
  }

  .header-download {
    min-height: 38px;
    padding: 0 17px;
    font-size: 0.81rem;
  }

  .hero {
    padding: 46px 28px 56px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(350px, 0.87fr);
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
  }

  .hero-copy {
    max-width: 620px;
    text-align: left;
  }

  .hero-brand {
    justify-content: flex-start;
    gap: 14px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 21px;
  }

  .app-name {
    font-size: 1.62rem;
  }

  .app-subtitle {
    font-size: 0.8rem;
  }

  .genre-tag {
    margin-top: 22px;
    padding: 7px 12px;
    font-size: 0.7rem;
  }

  .genre-tag .icon {
    width: 15px;
    height: 15px;
  }

  .hero-title {
    margin-top: 15px;
    font-size: clamp(2.7rem, 4.6vw, 3.4rem);
    line-height: 1.15;
  }

  .headline-first,
  .headline-accent {
    display: inline;
  }

  .headline-accent {
    white-space: nowrap;
  }

  .hero-subtitle {
    margin-right: 0;
    margin-left: 0;
    font-size: 1rem;
  }

  .hero-description {
    margin-right: 0;
    margin-left: 0;
    font-size: 0.82rem;
  }

  .reward-card {
    max-width: 520px;
    margin-right: 0;
    margin-left: 0;
    padding: 17px 20px;
    text-align: left;
  }

  .reward-headline {
    justify-content: flex-start;
  }

  .reward-amount {
    justify-content: flex-start;
  }

  .reward-number {
    font-size: 4rem;
  }

  .reward-currency {
    font-size: 1.25rem;
  }

  .reward-claim {
    font-size: 1rem;
  }

  .reward-sub {
    font-size: 0.78rem;
  }

  .reward-steps {
    gap: 4px;
  }

  .step-copy {
    font-size: 0.75rem;
  }

  .download-block {
    max-width: 520px;
    margin-right: 0;
    margin-left: 0;
  }

  .download-button {
    height: 58px;
    font-size: 1.2rem;
  }

  .download-note {
    text-align: left;
  }

  .google-play-slot {
    justify-content: flex-start;
  }

  .benefit-row {
    justify-content: flex-start;
    gap: 10px 22px;
    margin-top: 18px;
  }

  .benefit-row li {
    font-size: 0.76rem;
  }

  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 22px;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }

  .footer-note {
    max-width: 800px;
  }
}

/* Compact desktop height support */
@media (min-width: 900px) and (min-height: 880px) {
  .hero {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .visual-stage {
    min-height: 560px;
  }
}

/* --------------------------------------------------------------------------
   Mobile sticky bar
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .bg-play,
  .bg-timeline {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  .sticky-download {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: block;
    border-top: 1px solid rgba(235, 221, 215, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 26px rgba(65, 39, 31, 0.075);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    animation: bar-in 0.22s ease-out both;
  }

  .sticky-inner {
    display: flex;
    width: min(calc(100% - 32px), 560px);
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 auto;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  }

  .sticky-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
  }

  .sticky-name {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sticky-button {
    display: inline-flex;
    min-height: 40px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 10px;
    background: var(--brand-ink);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
  }

  .sticky-button:disabled {
    background: #fbe7e3;
    color: #843f3c;
    cursor: not-allowed;
  }
}

@media (min-width: 821px) {
  .sticky-download {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Small phones
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .header-inner {
    width: calc(100% - 30px);
    min-height: 58px;
    gap: 10px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-subtitle {
    display: none;
  }

  .header-download {
    min-height: 33px;
    padding: 0 11px;
    font-size: 0.73rem;
  }

  .hero {
    padding: 20px 16px 28px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .app-name {
    font-size: 1.18rem;
  }

  .app-subtitle {
    font-size: 0.66rem;
  }

  .genre-tag {
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.86rem;
  }

  .hero-description {
    font-size: 0.74rem;
  }

  .reward-card {
    padding-right: 13px;
    padding-left: 13px;
  }

  .reward-number {
    font-size: 3.4rem;
  }

  .reward-type {
    font-size: 0.6rem;
  }

  .download-button {
    height: 54px;
    font-size: 1.08rem;
  }

  .benefit-row {
    gap: 7px 10px;
  }

  .benefit-row li {
    font-size: 0.67rem;
  }

  .footer-inner {
    width: calc(100% - 30px);
  }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .phone-device,
  .visual-chip {
    animation: none;
  }
}

@media print {
  .site-header,
  .sticky-download,
  .preview-banner,
  .hero-visual,
  .bg-play,
  .bg-timeline,
  .download-block,
  .google-play-slot {
    display: none !important;
  }

  body {
    padding-bottom: 0;
  }

  .site-main {
    background: #fff;
  }

  .hero-copy {
    animation: none;
  }
}
