:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #141414;
  background: #d4cac3;
  --ink: #111111;
  --muted: #625e5b;
  --surface: #f6ece4;
  --tile: rgba(255, 252, 248, 0.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background: linear-gradient(120deg, #cfc6c0 0%, #ecc6b7 39%, #d4cec5 72%, #d6c8bd 100%);
}
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #6731e6; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; width: 22px; height: 22px; stroke-width: 2; }
.skip-link { position: absolute; left: 10px; top: -60px; z-index: 20; padding: 10px 14px; background: white; color: black; }
.skip-link:focus { top: 10px; }

.app-shell {
  width: min(430px, 100vw);
  height: min(920px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 80% 26% at 17% 12%, rgba(255, 202, 191, .66), transparent 78%),
    linear-gradient(165deg, #eee4db 0%, #f5e8dc 44%, #f5dfc9 100%);
  box-shadow: 0 24px 70px rgba(48, 35, 30, .16), 0 3px 12px rgba(48, 35, 30, .08);
  isolation: isolate;
}
.screen-content {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.screen-content::-webkit-scrollbar { display: none; }
.app-header {
  height: 85px;
  padding: 18px 28px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 23px; font-weight: 760; letter-spacing: 0; white-space: nowrap; }
.brand img { width: 37px; height: 37px; object-fit: contain; }
.header-action {
  width: 44px; height: 44px; border: 0; border-radius: 13px; background: rgba(255,255,255,.58);
  display: grid; place-items: center; color: var(--ink); transition: background .18s ease, transform .18s ease;
}
.header-action:hover { background: rgba(255,255,255,.85); }
.header-action:active { transform: scale(.95); }
.header-action :is(i, svg) { display: block; width: 22px; height: 22px; font-style: normal; font-size: 26px; line-height: 22px; }

.app-page { padding: 7px 20px 18px; animation: page-in .42s cubic-bezier(.2, 0, 0, 1) both; }
.page-intro { padding: 0 8px; }
.page-kicker { margin: 0 0 8px; text-transform: uppercase; font-size: 12px; font-weight: 650; letter-spacing: 0; color: #494441; }
.page-intro h1 { margin: 0; font-size: 40px; line-height: .98; font-weight: 780; letter-spacing: 0; }
.page-intro > p:last-child { margin: 10px 0 0; color: #5a5652; font-size: 15.5px; line-height: 1.35; font-weight: 430; }

.social-hero { position: relative; margin: 24px 0 12px; aspect-ratio: 1.48; border-radius: 17px; overflow: hidden; background: #d6b69c; }
.social-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }
.scene-video { position: absolute; opacity: 0; transition: opacity .45s ease; }
.is-playing .scene-video { opacity: 1; }
.is-playing img { animation: none; }
@media (prefers-reduced-motion: reduce) { .scene-video { display: none; } }
.social-hero .scene-video { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.link-list { display: grid; gap: 9px; }
.list-row {
  width: 100%; min-height: 75px; display: flex; align-items: center; gap: 16px; padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.48); border-radius: 17px; background: var(--tile); color: var(--ink);
  text-align: left; transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.list-row:hover { background: #fffaf5; border-color: #fff; transform: translateY(-1px); }
.list-row:active { transform: scale(.99); }
.list-row > :is(i, svg):last-child { flex: none; width: 20px; height: 20px; margin-left: auto; font-size: 26px; font-style: normal; line-height: 17px; }
.row-copy { display: grid; min-width: 0; gap: 3px; }
.row-copy strong { font-size: 16px; font-weight: 720; line-height: 1.1; }
.row-copy small { color: #625d59; font-size: 12px; line-height: 1.25; }
.social-logo {
  width: 52px; height: 52px; flex: none; border: 1px solid rgba(32, 28, 26, .16); border-radius: 15px;
  display: grid; place-items: center; background: rgba(250,239,226,.62); color: #0b0b0b;
}
.instagram-glyph { position: relative; width: 30px; height: 30px; border: 2.6px solid currentColor; border-radius: 9px; }
.instagram-glyph::before { content: ""; position: absolute; inset: 7px; border: 2.3px solid currentColor; border-radius: 50%; }
.instagram-glyph::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; right: 4px; top: 4px; }
.facebook-logo { font-family: Arial, sans-serif; font-size: 41px; font-weight: 800; line-height: 1; padding-top: 6px; }
.rednote-logo { font-size: 14px; font-weight: 900; letter-spacing: 0; white-space: nowrap; }
.social-tiktok-logo { font-family: Arial, sans-serif; font-size: 41px; font-weight: 750; line-height: 1; padding-bottom: 4px; }
.social-google-logo { font-family: Arial, sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }

.share-page .page-intro, .community-page .page-intro { position: relative; z-index: 1; }
.coffee-scene { height: 304px; position: relative; margin-top: 14px; overflow: hidden; }
.coffee-scene img { position: absolute; height: 340px; width: 272px; right: -3px; top: 0; object-fit: cover; object-position: center 44%; border-radius: 0 0 7px 7px; mix-blend-mode: multiply; }
.coffee-scene .scene-video { height: 340px; width: 272px; right: -3px; top: 0; object-fit: cover; object-position: center 44%; border-radius: 0 0 7px 7px; opacity: 1; }
.handwritten { font-family: "Bradley Hand", "Segoe Print", cursive; font-size: 19px; line-height: 1.02; transform: rotate(-8deg); font-weight: 600; color: #201814; }
.coffee-scene .handwritten { position: absolute; left: 13px; top: 86px; z-index: 1; }
.reward-main { margin-top: -3px; padding: 13px 14px 14px; border-radius: 17px; background: rgba(255,251,247,.7); position: relative; }
.reward-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reward-heading h2 { margin: 0 0 3px; font-size: 22px; line-height: 1.1; letter-spacing: 0; }
.reward-heading p { margin: 0; color: #625d59; font-size: 13px; }
.reward-icon { width: 43px; height: 43px; flex: none; border-radius: 50%; background: rgba(255,255,255,.84); display: grid; place-items: center; }
.reward-icon :is(i, svg) { display: block; width: 23px; height: 23px; font-style: normal; font-size: 25px; line-height: 23px; }
.reward-description { margin: 6px 6px 10px 0; max-width: 300px; color: #64605d; font-size: 12px; line-height: 1.35; }
.primary-button { min-height: 62px; width: 100%; padding: 7px 8px 7px 23px; border: 0; border-radius: 34px; display: flex; align-items: center; gap: 17px; background: #050505; color: white; text-align: left; text-decoration: none; font-size: 16px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button:hover { box-shadow: 0 7px 18px rgba(0,0,0,.16); transform: translateY(-1px); }
.primary-button:active { transform: scale(.985); }
.rednote-primary-icon { display: inline-grid; place-items: center; width: 53px; height: 32px; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; }
.button-arrow { display: grid; place-items: center; flex: none; width: 43px; height: 43px; margin-left: auto; background: #fff; color: #090909; border-radius: 50%; }
.button-arrow :is(i, svg) { display: block; width: 21px; height: 21px; font-style: normal; font-size: 24px; line-height: 20px; }
.share-platforms { margin-top: 15px; }
.share-platforms h2 { margin: 0 3px 9px; font-size: 14px; line-height: 1.2; font-weight: 700; }
.share-platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-platform-button {
  min-width: 0; min-height: 101px; padding: 11px 5px 9px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.65);
  border-radius: 16px; background: var(--tile); color: var(--ink); font-size: 12px; font-weight: 680;
  transition: background .18s ease, transform .18s ease;
}
.share-platform-button:hover { background: #fffaf5; transform: translateY(-1px); }
.share-platform-button:active { transform: scale(.98); }
.share-platform-button .social-logo { width: 47px; height: 47px; border-radius: 13px; }
.share-platform-button .instagram-glyph { width: 27px; height: 27px; border-radius: 8px; }
.share-platform-button .instagram-glyph::before { inset: 6px; }
.share-platform-button .facebook-logo { font-size: 37px; }
.share-platform-button .rednote-logo { font-size: 12px; }
.share-platform-button .social-tiktok-logo { font-size: 37px; }
.voucher-row { margin-top: 10px; min-height: 72px; }
.google-logo { width: 52px; height: 52px; display: grid; place-items: center; flex: none; font-family: Arial, sans-serif; font-weight: 800; font-size: 37px; background: conic-gradient(#4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 72%, #ea4335 72%); color: transparent; background-clip: text; }

.community-page { padding-bottom: 18px; }
.community-scene { height: 287px; margin: 6px -20px 0; overflow: hidden; position: relative; }
.community-scene img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 50%; mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 86%, transparent 100%); }
.community-scene .scene-video { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 86%, transparent 100%); }
.community-scene .handwritten { position: absolute; z-index: 1; right: 35px; top: 11px; font-size: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .social-hero img { animation: cafe-drift 12s ease-in-out infinite alternate; will-change: transform; }
  .coffee-scene img { animation: coffee-breathe 6s ease-in-out infinite alternate; will-change: transform; }
  .community-scene img { animation: community-drift 13s ease-in-out infinite alternate; will-change: transform; }
}
.community-join { margin: -18px 0 10px; position: relative; z-index: 1; }
.whatsapp-icon { width: 31px; height: 31px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.community-list .list-row { min-height: 74px; }
.row-line-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; }
.row-line-icon :is(i, svg) { display: block; width: 29px; height: 29px; font-size: 27px; font-style: normal; line-height: 27px; }

.bottom-nav { flex: none; height: 76px; margin: 0 20px max(16px, env(safe-area-inset-bottom)); padding: 7px 9px; border-radius: 38px; background: #030303; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-shadow: 0 12px 25px rgba(14,8,6,.14); }
.nav-item { min-width: 0; border: 0; border-radius: 30px; background: transparent; color: #e0ddda; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; line-height: 1; font-weight: 550; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: #1e1e1e; }
.nav-item :is(i, svg) { display: block; width: 25px; height: 25px; font-size: 25px; font-style: normal; line-height: 25px; }
.nav-share img { display: block; width: 32px; height: 32px; object-fit: contain; margin-top: -4px; }

.detail-dialog { width: min(390px, calc(100vw - 36px)); border: 0; border-radius: 24px; padding: 27px; background: #f8eee5; color: #151515; box-shadow: 0 25px 75px rgba(0,0,0,.24); }
.detail-dialog::backdrop { background: rgba(19,16,14,.48); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 20px; top: 20px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.07); display: grid; place-items: center; }
.dialog-close :is(i, svg) { width: 19px; height: 19px; display: block; font-style: normal; font-size: 24px; line-height: 19px; }
.dialog-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: #141414; color: white; font-size: 25px; }
.detail-dialog h2 { margin: 18px 0 8px; font-size: 25px; line-height: 1.08; }
.detail-dialog p { margin: 0 0 20px; color: #5c5652; font-size: 14px; line-height: 1.45; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dialog-actions button { min-height: 44px; border: 0; border-radius: 22px; padding: 0 17px; font-size: 13px; font-weight: 650; }
.dialog-actions .dialog-primary { background: #111; color: #fff; }
.dialog-actions .dialog-secondary { background: #e8dbd0; color: #171717; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 112px; transform: translateX(-50%); width: max-content; max-width: min(90vw, 380px); padding: 11px 17px; border-radius: 20px; background: #111; color: white; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: 13px; text-align: center; }

@keyframes page-in { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cafe-drift {
  from { transform: scale(1.035) translateX(0); }
  to { transform: scale(1.11) translateX(-1.8%); }
}
@keyframes coffee-breathe {
  from { transform: translateY(2px) scale(1.015); }
  to { transform: translateY(-8px) scale(1.035); }
}
@keyframes community-drift {
  from { transform: scale(1.025) translateX(-1%); }
  to { transform: scale(1.09) translateX(1%); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 520px) {
  body { display: block; background: var(--surface); }
  .app-shell { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .bottom-nav { margin-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .app-header { padding-left: 20px; padding-right: 20px; }
  .app-page { padding-left: 15px; padding-right: 15px; }
  .page-intro h1 { font-size: 36px; }
  .list-row { gap: 12px; padding-inline: 13px; }
  .community-scene { margin-inline: -15px; }
  .bottom-nav { margin-inline: 14px; }
}
