: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;
}
.header-tools { display: flex; align-items: center; gap: 8px; }
.language-picker { position: relative; }
.language-trigger {
  height: 44px; min-width: 68px; padding: 0 10px; border: 0; border-radius: 13px; background: rgba(255,255,255,.58);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 780;
}
.language-trigger:hover { background: rgba(255,255,255,.85); }
.language-trigger :is(i,svg):first-child { width: 17px; height: 17px; }
.language-trigger :is(i,svg):last-child { width: 14px; height: 14px; transition: transform .18s ease; }
.language-trigger[aria-expanded="true"] :is(i,svg):last-child { transform: rotate(180deg); }
.language-menu {
  position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; width: 180px; padding: 6px; border: 1px solid rgba(92,68,51,.15); border-radius: 12px;
  background: #fffaf6; box-shadow: 0 14px 32px rgba(54,38,27,.18);
}
.language-menu button { width: 100%; padding: 10px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 9px; background: transparent; color: var(--ink); text-align: left; font-size: 12px; font-weight: 760; }
.language-menu button span { color: var(--muted); font-weight: 600; }
.language-menu button[aria-checked="true"] { background: #171513; color: white; }
.language-menu button[aria-checked="true"] span { color: rgba(255,255,255,.72); }
.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; text-decoration: none; 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; }
.community-scene-controls { position: absolute; z-index: 2; left: 20px; bottom: 27px; display: flex; gap: 3px; }
.community-scene-controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.community-scene-controls button::after { content: ""; width: 19px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: width .2s ease, background .2s ease; }
.community-scene-controls button[aria-pressed="true"]::after { width: 27px; background: #fff; }
.community-scene-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 6px; }

@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(4, 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; }
.auth-dialog { width: min(390px, calc(100vw - 36px)); border: 0; border-radius: 22px; padding: 27px; color: #171513; background: #fff8f3; box-shadow: 0 25px 75px rgba(0,0,0,.24); }
.auth-dialog::backdrop { background: rgba(19,16,14,.48); backdrop-filter: blur(4px); }
.auth-dismiss { position: absolute; right: 18px; top: 18px; margin: 0; }
.auth-dismiss button { width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #efe0d5; color: #171513; }
.auth-dismiss :is(i,svg) { width: 19px; height: 19px; }
.auth-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 20px; border-radius: 18px; background: #171513; }
.auth-mark img { width: 42px; height: 42px; object-fit: contain; }
.auth-dialog .page-kicker { margin-bottom: 7px; }
.auth-dialog h2 { margin: 0; font-size: 28px; line-height: 1.05; }
.auth-dialog > p:not(.page-kicker):not(.auth-status) { margin: 10px 0 22px; color: #625b56; font-size: 14px; line-height: 1.45; }
.google-sign-in { min-height: 44px; display: flex; justify-content: center; }
.auth-status { min-height: 18px; margin: 14px 0 0; color: #665b54; font-size: 12px; text-align: center; }
.auth-status.is-error { color: #a32121; }

.rewards-page { padding: 15px 20px 22px; }
.rewards-hero { position: relative; min-height: 296px; padding: 27px 14px 0; overflow: hidden; }
.rewards-hero-copy { position: relative; z-index: 1; max-width: 270px; }
.rewards-hero .page-kicker { margin-bottom: 13px; font-size: 12px; }
.rewards-hero h1 { font-size: 43px; line-height: .98; }
.rewards-hero > .rewards-hero-copy > p:not(.page-kicker) { margin-top: 14px; font-size: 17px; line-height: 1.2; }
.rewards-gift { position: absolute; z-index: 0; width: 205px; height: 205px; object-fit: contain; right: -8px; bottom: 7px; filter: drop-shadow(0 13px 12px rgba(202, 67, 151, .15)); pointer-events: none; }
.spin-cost { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; margin-top: 14px; padding: 0 13px; border-radius: 18px; background: rgba(239,204,162,.56); color: #675246; font-size: 12px; font-weight: 720; }
.spin-cost :is(i,svg) { width: 18px; height: 18px; color: #bd7900; }
.points-panel { min-height: 76px; margin: 22px 0 13px; padding: 12px 13px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.72); border-radius: 17px; background: rgba(255,252,248,.7); }
.points-panel[hidden] { display: none; }
.points-coin { width: 47px; height: 47px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #171513; color: #fff8ef; font-size: 16px; font-weight: 800; }
.points-panel span:nth-child(2) { display: grid; gap: 3px; }
.points-panel small { color: #6b625d; font-size: 11px; font-weight: 650; text-transform: uppercase; }
.points-panel strong { font-size: 20px; line-height: 1; }
.points-panel button { width: 38px; height: 38px; margin-left: auto; border: 0; border-radius: 50%; background: #ead9cd; color: #171513; display: grid; place-items: center; }
.points-panel button :is(i,svg) { width: 19px; height: 19px; }
.draw-board { padding: 11px; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,251,247,.68); box-shadow: 0 10px 22px rgba(92,61,42,.05); }
.draw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-height: 350px; }
.draw-slot, .draw-spin { min-width: 0; min-height: 108px; padding: 9px 5px; border-radius: 17px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.draw-slot { --prize-tint: #fff1e8; position: relative; overflow: hidden; border: 0; background: rgba(255,255,255,.75); color: #151311; box-shadow: inset 0 0 0 1px rgba(113,83,62,.06); transition: background .12s ease, color .12s ease, transform .12s ease; }
.draw-slot:nth-child(1), .draw-slot:nth-child(7) { --prize-tint: #fff3ce; }.draw-slot:nth-child(2) { --prize-tint: #ffefe8; }.draw-slot:nth-child(3), .draw-slot:nth-child(8) { --prize-tint: #fff1e9; }.draw-slot:nth-child(4) { --prize-tint: #fff2e6; }.draw-slot:nth-child(6) { --prize-tint: #eee9ff; }.draw-slot:nth-child(9) { --prize-tint: #fff2dc; }
.draw-slot.is-active { background: #171513; color: #fff; transform: scale(.97); }
.draw-slot span:first-child { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--prize-tint); font-size: 33px; line-height: 1; }.draw-slot strong { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.draw-spin { border: 0; background: #171513; color: #fff; font-weight: 790; font-size: 17px; letter-spacing: 0; transition: transform .15s ease, background .15s ease; }
.draw-spin::after { content: "Use 1 point"; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 530; }.draw-spin:hover { background: #322820; transform: translateY(-1px); }.draw-spin:disabled { cursor: wait; opacity: .7; }
.draw-spin :is(i,svg) { width: 34px; height: 34px; }
.reward-guide { display: grid; grid-template-columns: 57px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 16px; padding: 18px; border: 1px solid rgba(255,255,255,.82); border-radius: 25px; background: rgba(255,251,247,.7); }
.reward-guide-icon { width: 57px; height: 57px; display: grid; place-items: center; border-radius: 50%; background: #ffe1e0; color: #eb4c58; }.reward-guide-icon :is(i,svg) { width: 28px; height: 28px; }
.reward-guide-copy h2 { margin: 0; font-size: 16px; line-height: 1.15; }.reward-guide-copy p { margin: 5px 0 0; color: #665e59; font-size: 12px; line-height: 1.3; }
.reward-login { min-height: 48px; padding: 0 15px 0 18px; border: 0; border-radius: 25px; display: inline-flex; align-items: center; gap: 12px; background: #171513; color: #fff; font-size: 14px; font-weight: 740; white-space: nowrap; }.reward-login:hover { background: #332a25; }.reward-login :is(i,svg) { width: 19px; height: 19px; }
.reward-steps { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 18px 1.25fr 18px 1fr; align-items: center; padding-top: 8px; color: #615953; }.reward-steps > span { display: grid; justify-items: center; gap: 5px; font-size: 10px; font-weight: 650; text-align: center; }.reward-steps span :is(i,svg) { width: 23px; height: 23px; color: #28231f; }.reward-steps > :is(i,svg) { width: 16px; height: 16px; color: #857a72; }
.reward-history { margin-top: 20px; }.reward-history h2 { margin: 0 0 9px; font-size: 15px; }
.reward-history > div { display: grid; gap: 7px; }.reward-history-item { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; background: rgba(255,252,248,.54); }.reward-history-item strong { display: block; font-size: 13px; }.reward-history-item small { display: block; margin-top: 3px; color: #6d625c; font-size: 11px; }.reward-history-item span { flex: none; font-size: 12px; font-weight: 750; }.reward-history-item .earned { color: #1f7646; }.reward-history-item .spent { color: #8b5526; }
.share-studio-dialog { width: min(650px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #f8f9fb; color: #273247; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.share-studio-dialog::backdrop { background: rgba(16,13,11,.76); backdrop-filter: blur(6px); }
.share-studio-header { min-height: 108px; display: flex; align-items: center; gap: 15px; padding: 22px 34px; border-bottom: 1px solid #e0e4ea; background: #fff; }
.share-studio-header > span:last-child { display: grid; gap: 4px; }
.share-studio-header strong { font-size: 24px; line-height: 1; }
.share-studio-header small { color: #657085; font-size: 13px; }
.share-studio-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-family: Arial, sans-serif; font-size: 29px; font-weight: 800; background: #151923; }
.share-studio-icon[data-platform="instagram"] { background: linear-gradient(135deg, #6545dc, #df3b8c 56%, #f8a636); }
.share-studio-icon[data-platform="facebook"] { border-radius: 50%; background: #1877f2; }
.share-studio-icon[data-platform="tiktok"] { background: #171719; color: #fff; }
.share-studio-icon[data-platform="google"] { background: conic-gradient(from -48deg, #4285f4 0 25%, #34a853 25% 48%, #fbbc05 48% 70%, #ea4335 70%); color: #fff; }
.share-studio-dismiss { margin: 0; padding: 0; }
.share-studio-close { position: absolute; z-index: 1; top: 22px; right: 26px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #9aa4b4; }
.share-studio-close:hover { background: #eef1f5; color: #4b5667; }
.share-studio-close :is(i,svg) { width: 22px; height: 22px; }
.share-studio-content { margin: 32px; padding: 30px; border: 1px solid #dce5f4; border-radius: 15px; text-align: center; background: #edf4ff; }
.share-studio-content[data-platform="instagram"] { border-color: #eedcf6; background: #fcf2ff; }
.share-studio-content[data-platform="tiktok"] { border-color: #dde2e8; background: #f3f5f7; }
.share-studio-content h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: 0; }
.share-studio-content > p { margin: 13px 0 20px; color: #4e5a6f; font-size: 15px; line-height: 1.5; }
.share-media { position: relative; width: min(100%, 385px); height: 174px; margin: 0 auto 20px; overflow: hidden; border-radius: 12px; background: #e3e6eb; box-shadow: 0 7px 17px rgba(43,56,80,.12); }
.share-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-media span { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 11px; background: #ff554e; color: #fff; font-size: 10px; font-weight: 750; }
.share-copy-card { padding: 22px 24px; border: 1px solid #dae0e8; border-radius: 12px; background: #fff; text-align: left; box-shadow: 0 3px 10px rgba(44,57,80,.06); }
.share-copy-card p { margin: 0; white-space: pre-wrap; color: #344056; font-size: 15px; line-height: 1.62; }
.share-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.share-tags :is(span,button) { padding: 7px 12px; border: 1px solid #dce2eb; border-radius: 9px; color: #445167; background: #fff; font-size: 12px; font-weight: 680; }
.share-tags :is(span,button).is-selected { border-color: #72a6ff; background: #e7f0ff; color: #2468d8; box-shadow: 0 2px 6px rgba(41,114,229,.18); }
.share-studio-status { min-height: 18px; margin: 12px 0 0 !important; color: #557096 !important; font-size: 12px !important; }
.share-studio-status:empty { display: none; }
.share-studio-actions { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; margin-top: 23px; }
.share-studio-actions button { min-height: 59px; padding: 8px 12px; border: 0; border-radius: 10px; font-size: 13px; font-weight: 760; line-height: 1.25; }
.share-alternate { color: #fff; background: linear-gradient(135deg, #9d55ec, #d83fbd); }
.share-primary { color: #fff; background: linear-gradient(135deg, #287dea, #3466e9); }
.share-copy { border: 1px solid #d6deea !important; color: #35506f; background: #fff; }
.share-studio-content[data-platform="instagram"] .share-primary { background: linear-gradient(135deg, #d93ac7, #fa355d); }
.share-studio-content[data-platform="tiktok"] .share-primary { background: #171719; }
.share-studio-dialog { background: #f8eee5; color: #171513; box-shadow: 0 30px 90px rgba(42,29,22,.44); }
.share-studio-dialog:not([open]) { display: none; }
.share-studio-dialog[open] { display: flex; flex-direction: column; }
.share-studio-dialog::backdrop { background: rgba(28,20,16,.72); }
.share-studio-header { flex: none; border-color: rgba(123,94,76,.16); background: #fff8f3; }
.share-studio-header strong { color: #171513; }.share-studio-header small { color: #6d625c; }
.share-studio-close { color: #8b7d74; }.share-studio-close:hover { background: #efe0d5; color: #312822; }
.share-studio-content,.share-studio-content[data-platform="instagram"],.share-studio-content[data-platform="tiktok"] { border-color: rgba(255,255,255,.88); background: rgba(255,251,247,.6); }
.share-studio-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.share-studio-content h2 { color: #171513; }.share-studio-content > p { color: #675e59; }
.share-media { background: #e8d7ca; box-shadow: 0 8px 18px rgba(66,43,29,.13); }
.share-copy-card { border-color: rgba(152,126,108,.22); background: #fffdfb; box-shadow: 0 3px 10px rgba(68,47,34,.06); }
.share-copy-card p { color: #3f3732; }.share-tags :is(span,button) { border-color: rgba(146,119,99,.22); color: #554941; background: #fffaf6; }.share-tags :is(span,button).is-selected { border-color: #171513; background: #171513; color: #fff; box-shadow: none; }
.share-studio-content[data-platform="instagram"] .share-copy-card { display: none; }
.share-studio-content[data-platform="instagram"].is-loading .share-copy-card,
.share-studio-content[data-platform="instagram"].is-empty .share-copy-card { display: block; }
.share-studio-content[data-platform="instagram"] .share-tags { justify-content: center; margin: 0 0 20px; }
.share-studio-status { color: #77675c !important; }
.share-alternate { color: #171513; background: #ead9cd; }.share-primary,.share-studio-content[data-platform="instagram"] .share-primary,.share-studio-content[data-platform="tiktok"] .share-primary { color: #fff; background: #171513; }.share-copy { border-color: rgba(146,119,99,.26) !important; color: #332a25; background: #fffaf6; }
.share-studio-actions { position: sticky; z-index: 1; bottom: 0; padding-top: 14px; padding-bottom: 2px; background: #f8eee5; }
.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)); }
  .share-studio-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .share-studio-header { min-height: 82px; padding: 17px 20px; }
  .share-studio-header strong { font-size: 20px; }
  .share-studio-header small { font-size: 11px; }
  .share-studio-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 23px; }
  .share-studio-close { top: 19px; right: 14px; }
  .share-studio-content { margin: 14px; padding: 18px; }
  .share-studio-content h2 { font-size: 21px; }
  .share-studio-content > p { margin: 9px 0 15px; font-size: 13px; }
  .share-media { height: 132px; margin-bottom: 14px; }
  .share-copy-card { padding: 15px; }
  .share-copy-card p { font-size: 13px; line-height: 1.52; }
  .share-tags { gap: 6px; margin-top: 12px; }
  .share-tags :is(span,button) { padding: 5px 8px; font-size: 10px; }
  .share-studio-actions { grid-template-columns: 1fr 1.2fr 1fr; gap: 7px; margin-top: 15px; }
  .share-studio-actions button { min-height: 48px; padding: 7px 5px; font-size: 11px; }
  .draw-grid { min-height: 280px; }.draw-slot, .draw-spin { min-height: 84px; }.draw-slot strong { font-size: 10px; }
  .rewards-hero { min-height: 278px; }.rewards-gift { width: 188px; height: 188px; right: -8px; bottom: 9px; }.draw-grid { min-height: 320px; }.draw-slot, .draw-spin { min-height: 98px; }.draw-slot span:first-child { width: 55px; height: 55px; font-size: 29px; }
}
@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; }
  .share-studio-header { min-height: 86px; padding: 18px; }
  .share-studio-header strong { font-size: 20px; }
  .share-studio-close { top: 16px; right: 12px; }
  .share-studio-content { margin: 14px; padding: 20px 14px; }
  .share-studio-actions { grid-template-columns: 1fr; }
  .reward-guide { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }.reward-guide-icon { width: 48px; height: 48px; }.reward-login { grid-column: 1 / -1; justify-content: center; }.reward-steps { padding-top: 4px; }
}
