body.kn-dating-home {
  margin: 0;
  background: #0f1015;
  color: #f4f4f6;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.kn-dating-home #app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #0f1015;
  box-shadow: 0 0 24px #0005;
}
.kn-home { min-height: 100vh; background: #0f1015; color: #f4f4f6; }
.kn-home *, .kn-nav, .kn-nav * { box-sizing: border-box; }
.kn-home button, .kn-nav-item { font: inherit; -webkit-tap-highlight-color: transparent; }
.kn-home button { cursor: pointer; }
.kn-home button:focus-visible, .kn-home a:focus-visible, .kn-home input:focus-visible, .kn-nav-item:focus-visible { outline: 2px solid #ff74a1; outline-offset: 3px; }
.kn-home h1, .kn-home h2, .kn-home h3, .kn-home p { margin: 0; }
.kn-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.kn-header {
  height: 58px;
  padding: 0 16px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1a1d24;
  border-bottom: 1px solid #34303c;
}
.kn-brand { display: inline-flex; align-items: center; gap: 7px; color: #f34c80; text-decoration: none; font-size: 20px; font-weight: 800; white-space: nowrap; }
.kn-region { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 24px; padding: 8px 11px; background: #292d37; color: #f6f6f8; font-size: 13px !important; max-width: 50%; }
.kn-welcome { background: linear-gradient(115deg, #2a1c32, #201d2c 90%); }
.kn-hero { height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 16px 16px; text-align: center; gap: 8px; }
.kn-hero h1 { font-size: 21px; line-height: 1.25; font-weight: 750; }
.kn-hero p { font-size: 14px; line-height: 1.5; color: #e2dbe5; }
.kn-notice { min-height: 34px; padding: 7px 14px 7px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #281b2a; border-bottom: 1px solid #3a2738; color: #dda8c1; }
.kn-notice > svg { flex-shrink: 0; }
.kn-notice .kn-notice-viewport { position: relative; flex: 1; min-width: 0; height: 18px; overflow: hidden; font-size: 12px; line-height: 18px; text-align: left; }
.kn-notice-text { position: absolute; top: 0; width: max-content; white-space: nowrap; animation: kn-notice-scroll 25s linear infinite; }
.kn-notice:hover .kn-notice-text { animation-play-state: paused; }
@keyframes kn-notice-scroll {
  from { left: 100%; transform: translateX(0); }
  to { left: 0; transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .kn-notice .kn-notice-viewport { overflow-x: auto; }
  .kn-notice-text { position: static; animation: none; }
}
.kn-main { padding: 10px 16px calc(80px + env(safe-area-inset-bottom, 0px)); }
.kn-guide { min-height: 116px; background: #1a1e26; border: 1px solid #303744; border-radius: 12px; padding: 16px 13px 13px; box-shadow: 0 0 0 3px #17192055; }
.kn-guide h2 { font-size: 13px; font-weight: 400; line-height: 18px; color: #bfc0cb; }
.kn-steps { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0; margin: 8px 0 0; gap: 6px; }
.kn-steps button { background: none; border: 0; color: #f2f2f6; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; }
.kn-step-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #f43e7b, #fa528d); box-shadow: 0 0 12px #f4427e24, inset 0 0 0 1px #ffffff12; color: #fff; font-size: 14px; }
.kn-step-label { font-size: 12px; line-height: 15px; white-space: nowrap; }
.kn-featured { margin-top: 24px; scroll-margin-top: 16px; }
.kn-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.kn-section-heading h2 { font-size: 16px; font-weight: 700; line-height: 21px; }
.kn-text-button { border: 0; background: none; color: #ee5280; padding: 0; font-size: 12px !important; line-height: 21px; text-align: right; }
.kn-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kn-profile-card { display: block; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #2b303d; border-radius: 12px; background: #1a1e26; color: #f4f4f6; text-align: left; }
.kn-profile-photo { position: relative; aspect-ratio: 1.2; overflow: hidden; background: #242a31; }
.kn-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.kn-online { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 20px; background: #172b27b3; color: #65e8b7; font-size: 10px; line-height: 14px; }
.kn-online i { width: 8px; height: 8px; border-radius: 50%; background: #16d899; box-shadow: 0 0 5px #16d89985; }
.kn-profile-info { padding: 11px 9px 10px; }
.kn-profile-info h3 { font-size: 14px; font-weight: 700; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.kn-profile-location { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #afb0bd; font-size: 11px; line-height: 14px; }
.kn-profile-location > span:first-child { display: flex; align-items: center; gap: 2px; min-width: 0; }
.kn-profile-location > span:last-child { flex-shrink: 0; }
.kn-demo-note { font-size: 11px; line-height: 1.6; color: #9192a2; padding-top: 16px; }
.kn-nav { position: fixed; z-index: 100; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 600px; min-height: 60px; padding: 8px 0 calc(5px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #35303e; background: #171720; font-family: Arial, Helvetica, sans-serif; }
body.kn-dating-home .kn-nav { max-width: 480px; }
.kn-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9197aa; text-decoration: none; font-size: 12px; line-height: 15px; }
.kn-nav-item.is-active { color: #f3447d; }
.kn-nav-item.is-active .kn-icon { filter: drop-shadow(0 0 4px #f3447d55); }
.kn-modal-overlay { position: fixed; z-index: 3000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: #000b; backdrop-filter: blur(4px); }
.kn-dialog { width: 100%; max-width: 400px; max-height: 85vh; overflow-y: auto; border: 1px solid #353845; border-radius: 16px; padding: 20px; background: #1a1e26; color: #f4f4f6; box-shadow: 0 15px 70px #0009; }
.kn-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kn-dialog h2 { font-size: 19px; line-height: 1.4; }
.kn-dialog-close { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 50%; background: #2b2e3a; color: #ddd; }
.kn-dialog-description { font-size: 14px; line-height: 1.7; color: #bfc0cb; }
.kn-region-options { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.kn-region-search { display: block; width: 100%; margin-top: 16px; border: 1px solid #353845; border-radius: 10px; padding: 12px; background: #11141b; color: #f4f4f6; font: inherit; font-size: 14px; }
.kn-region-search::placeholder { color: #9ea1b1; }
.kn-region-status { margin-top: 14px !important; color: #bfc0cb; font-size: 13px; line-height: 1.7; }
.kn-region-status .kn-text-button { margin-top: 8px; }
.kn-empty-profiles { padding: 28px 12px; border: 1px solid #303744; border-radius: 12px; background: #1a1e26; text-align: center; font-size: 13px; line-height: 1.7; color: #bfc0cb; }
.kn-empty-profiles .kn-text-button { margin-top: 12px; }
.kn-region-option { display: flex; align-items: center; gap: 9px; border: 1px solid #353845; border-radius: 10px; padding: 12px; background: #222630; color: #eee; text-align: left; font-size: 14px !important; }
.kn-region-option.is-selected { border-color: #f34c80; background: #f34c8012; color: #ff7ca5; }
.kn-dialog-photo { display: block; width: 100%; height: 210px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; }
@media (hover: hover) { .kn-profile-card:hover .kn-profile-photo img { transform: scale(1.035); } .kn-region:hover { background: #343846; } .kn-nav-item:hover { color: #f86c99; } }
@media (max-width: 360px) {
  .kn-header { padding-left: 12px; padding-right: 12px; }
  .kn-brand { font-size: 18px; }
  .kn-hero h1 { font-size: 19px; }
  .kn-hero p { font-size: 12px; }
  .kn-main { padding-left: 12px; padding-right: 12px; }
  .kn-guide { padding-left: 10px; padding-right: 10px; }
  .kn-step-label { font-size: 11px; }
  .kn-profile-grid { gap: 10px; }
  .kn-profile-location { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kn-profile-photo img { transition: none; } }

.kn-couple-slider { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #281b2a; }
.kn-couple-slides { position: absolute; inset: 0; }
.kn-couple-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.035); transition: opacity 900ms ease, transform 4500ms ease; }
.kn-couple-slide.is-active { opacity: 1; transform: scale(1); }
.kn-couple-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.kn-couple-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 22px 30px 48px; background: linear-gradient(90deg, #0009, #0002 65%, #0007); color: #fff; text-align: center; text-shadow: 0 2px 8px #000b; }
.kn-couple-caption strong { max-width: 90%; font-size: clamp(18px, 5vw, 27px); line-height: 1.26; letter-spacing: -.4px; }
.kn-couple-caption span { max-width: 90%; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.5; font-weight: 600; }
.kn-couple-controls { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; padding: 24px 12px 10px; background: linear-gradient(transparent, #0008); }
.kn-couple-dots { display: flex; gap: 2px; }
.kn-couple-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 9px; }
.kn-couple-dots button::after { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #ffffff88; }
.kn-couple-dots button.is-active::after { background: #f34c80; box-shadow: 0 0 0 2px #fff; }
.kn-couple-pause { position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px; border: 1px solid #fff6; border-radius: 50%; background: #0005; color: #fff; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .kn-couple-slide { transition: none; transform: none; } }

.kn-lottery { margin: 12px 16px 0; color: #bfc0cb; font-size: 12px; }
.kn-lottery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.kn-lottery-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 1px solid #303744; border-radius: 12px; background: #1a1e26; color: #f4f4f6; min-width: 0; }
.kn-lottery-item img { width: 72px; height: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid #41404e; background: #292d37; }
.kn-lottery-item strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.kn-lottery-item span { color: #bfc0cb; font-size: 11px; line-height: 1.4; }
.kn-lottery-item:hover { border-color: #f34c80; }
.kn-lottery-retry { padding: 8px 12px; border: 1px solid #f34c80; border-radius: 8px; background: transparent; color: #f34c80; }

/* Keep faces visible when portrait wedding photos fill the home banner. */
.kn-couple-image[src*="couple-vn-1"] { object-position: center 32%; }
.kn-couple-image[src*="couple-vn-2"] { object-position: center 45%; }
.kn-couple-image[src*="couple-vn-3"] { object-position: center 35%; }
.kn-couple-image[src*="couple-vn-4"] { object-position: center 35%; }

.kn-lottery-title { margin: 0 0 10px; color: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; }
body.kn-dating-home .kn-lottery-title { margin: 0 0 10px; color: var(--kn-text); }
