/* R277 first visit: cookie sheet, install help, app-mode purchase hiding (dilaca-firstvisit-r277.js).
   Phone first: a bottom sheet above the home indicator; from 721 px a card in the bottom-left corner. Gold UI. */
.dfv-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483600;
  display: flex;
  justify-content: center;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom));
  font-family: "Lexend Deca", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
  animation: dfv-up .28s cubic-bezier(.2, .8, .2, 1) both;
}
.dfv-card {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(226, 190, 114, .55);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(28, 24, 17, .98), rgba(14, 13, 11, .98));
  color: #f4f1ea;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 32px rgba(226, 190, 114, .14), inset 0 1px rgba(255, 255, 255, .06);
}
.dfv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dfv-head > div { flex: 1 1 auto; min-width: 0; }
.dfv-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.dfv-title { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: #f4dca2; }
.dfv-head .dfv-title { margin: 0; }
.dfv-body { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #cfc8bb; }
.dfv-link { color: #f4dca2; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.dfv-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dfv-actions .dfv-btn { flex: 1 1 0; }
.dfv-two .dfv-btn { flex: 1 1 calc(50% - 5px); }
.dfv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(226, 190, 114, .55);
  border-radius: 14px;
  background: rgba(226, 190, 114, .10);
  color: #f4f1ea;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dfv-btn:focus-visible, .dfv-x:focus-visible, .dfv-link:focus-visible { outline: 2px solid #f4dca2; outline-offset: 2px; }
.dfv-gold {
  border-color: transparent;
  background: linear-gradient(180deg, #f4dca2, #d6a94a);
  color: #1a1306;
  box-shadow: 0 6px 16px rgba(226, 190, 114, .25), inset 0 1px rgba(255, 255, 255, .45);
}
.dfv-ghost { background: transparent; }
.dfv-x {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #a5adba;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* iPhone / iPad Safari: two steps, the active one glows in turn, an arrow points at Safari's toolbar */
.dfv-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 8px; }
.dfv-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid rgba(226, 190, 114, .22);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #f4f1ea;
}
.dfv-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #0a84ff;          /* the iOS system blue of the Share / Add icons */
}
.dfv-ic svg { width: 24px; height: 24px; }
.dfv-s1 { animation: dfv-step 3.2s ease-in-out infinite; }
.dfv-s2 { animation: dfv-step 3.2s ease-in-out 1.6s infinite; }
.dfv-pointer {
  width: 0;
  height: 0;
  margin: 10px auto 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #f4dca2;
  animation: dfv-bob 1.2s ease-in-out infinite;
}
/* iPad Safari has Share at the top right */
@media (min-width: 721px) {
  .dfv-sheet[data-dfv="install-ios"] { top: 10px; bottom: auto; justify-content: flex-end; padding: 10px; }
  .dfv-sheet[data-dfv="install-ios"] .dfv-pointer { position: absolute; top: -12px; right: 120px; margin: 0; transform: rotate(180deg); }
  .dfv-sheet[data-dfv="install-ios"] .dfv-card { position: relative; }
}

/* desktop: a card in the bottom-left corner, never over the Dock */
@media (min-width: 721px) {
  .dfv-sheet { justify-content: flex-start; padding: 0 0 24px 24px; }
  .dfv-card { max-width: 420px; }
}

@keyframes dfv-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dfv-step {
  0%, 45% { border-color: rgba(226, 190, 114, .9); background: rgba(226, 190, 114, .12); }
  55%, 100% { border-color: rgba(226, 190, 114, .22); background: transparent; }
}
@keyframes dfv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .dfv-sheet, .dfv-s1, .dfv-s2, .dfv-pointer { animation: none; }
}

/* app mode (Android app / iOS app): no buy, upgrade, top-up or pricing control anywhere (Play policy: buy on the web) */
html[data-dilaca-app] :is([data-dfv-buy], [data-open-upgrade], [data-request-upgrade], [data-r196-upgrade], [data-pop-upgrade],
  [data-dialog-upgrade], [data-upgrade-plan], [data-upgrade-request], [data-storage-buy], [data-dialog-buy-workspace],
  [data-credit-topup], [data-buy-addon], [data-billing-topup], [data-checkout-pay], [data-r8-plans], [data-code-plans],
  [data-pricing-segment], .cos-buy-more, .p17-dock-button, .p17-sales-stage, .p17-sales-comparison, .p17-upgrade-dialog,
  .p17-payment-method, .p17-checkout-summary) {
  display: none !important;
}
