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

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --border: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --gold-bg: linear-gradient(135deg, #ffd60a, #ff9500);
  --silver-bg: linear-gradient(135deg, #e8e8ed, #aeaeb2);
  --bronze-bg: linear-gradient(135deg, #e8b87a, #c68642);
  --chart-item-height: 96px;
  --safe-top: 0px;
  --safe-bottom: 0px;
}

@supports (padding: env(safe-area-inset-top)) {
  :root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
  }
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  overflow: hidden;
}

body {
  min-height: 100%;
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

body.modal-active {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}

/* Background */
.bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(88, 86, 214, 0.07), transparent),
    radial-gradient(ellipse 50% 35% at 80% 10%, rgba(0, 113, 227, 0.08), transparent),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 113, 227, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(255, 149, 0, 0.05), transparent);
}

/* Main layout */
.main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  margin: 0 auto;
  padding: 20px 24px 16px;
  padding-top: max(20px, var(--safe-top));
  padding-bottom: max(16px, var(--safe-bottom));
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

.featured {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.rank-section {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.rank-section > .filter-bar { margin-bottom: 12px; }

/* Featured card */
.featured-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, -webkit-transform 0.25s ease, transform 0.25s ease;
}

.featured-card:hover {
  box-shadow: var(--shadow-lg);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.featured-body {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 24px;
}

.featured-body > * + * { margin-left: 20px; }

.featured-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.featured-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.featured-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.featured-desc {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-btn {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, -webkit-transform 0.15s, transform 0.15s;
}

.featured-btn:hover { background: var(--accent-hover); -webkit-transform: scale(1.03); transform: scale(1.03); }
.featured-btn:active { -webkit-transform: scale(0.97); transform: scale(0.97); }

/* Filter bar */
.filter-bar {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  background: rgba(118, 118, 128, 0.1);
  border-radius: 10px;
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar > .chip + .chip { margin-left: 2px; }

.filter-bar::-webkit-scrollbar { display: none; }

.chip {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 52px;
  padding: 7px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.chip:hover { color: var(--text); }

.chip.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Chart list */
.chart-card {
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chart-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--surface));
  pointer-events: none;
  display: none;
}

.chart-card.has-more::after { display: block; }

.chart-scroll {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.chart-scroll::-webkit-scrollbar { width: 4px; }
.chart-scroll::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }

.chart-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-height: var(--chart-item-height);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s;
}

.chart-item > * + * { margin-left: 14px; }

.chart-item:last-child { border-bottom: none; }
.chart-item:hover { background: rgba(0, 113, 227, 0.04); padding-left: 24px; }

.row-gold {
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.08), transparent 55%);
  border-left: 3px solid #ffd60a;
}

.row-silver {
  background: linear-gradient(90deg, rgba(174, 174, 178, 0.1), transparent 55%);
  border-left: 3px solid #aeaeb2;
}

.row-bronze {
  background: linear-gradient(90deg, rgba(198, 134, 66, 0.08), transparent 55%);
  border-left: 3px solid #c68642;
}

.chart-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

.rank {
  width: 30px;
  height: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-tertiary);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  border-radius: 9px;
}

.rank-gold { background: var(--gold-bg); color: #fff; font-size: 13px; box-shadow: 0 2px 10px rgba(255, 149, 0, 0.4); }
.rank-silver { background: var(--silver-bg); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(174, 174, 178, 0.4); }
.rank-bronze { background: var(--bronze-bg); color: #fff; font-size: 13px; box-shadow: 0 2px 8px rgba(198, 134, 66, 0.4); }

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: -webkit-transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon img,
.featured-icon img,
.modal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-family: 'object-fit: cover;';
  display: block;
  border: 0;
}

.chart-item:hover .app-icon { -webkit-transform: scale(1.08) rotate(-2deg); transform: scale(1.08) rotate(-2deg); }

.app-info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
}

.app-name-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.app-name-row > * + * { margin-left: 8px; }

.app-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-tag {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.app-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.get-btn {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-width: 58px;
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, -webkit-transform 0.15s, transform 0.15s, box-shadow 0.2s;
}

.get-btn:hover {
  background: var(--accent);
  color: #fff;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0, 113, 227, 0.35);
}

.get-btn:active { -webkit-transform: scale(0.96); transform: scale(0.96); }
.clickable { cursor: pointer; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal-backdrop { background: rgba(0, 0, 0, 0.55); }
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: -webkit-transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.modal-sheet.is-visible {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, -webkit-transform 0.15s, transform 0.15s;
}

.modal-close:hover { background: rgba(0, 0, 0, 0.1); -webkit-transform: scale(1.08); transform: scale(1.08); }

.modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--safe-bottom);
}

.modal-hero {
  position: relative;
  padding: 24px 24px 20px;
  overflow: hidden;
}

.modal-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--hero-bg);
  opacity: 0.12;
}

.modal-hero-content {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
}

.modal-hero-content > * + * { margin-left: 18px; }

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-head {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.modal-rank-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  margin-bottom: 6px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.modal-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-meta {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-meta > * { margin: 0 8px 8px 0; }

.modal-category {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
}

.modal-tag {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}

.modal-info-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  margin: 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modal-info-stat {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  text-align: center;
}

.modal-info-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.modal-stat-num {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.modal-section { padding: 20px 24px 0; }

.modal-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-features {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-screenshots {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-screenshots > .screenshot + .screenshot { margin-left: 10px; }

.modal-screenshots::-webkit-scrollbar { display: none; }

.screenshot {
  flex-shrink: 0;
  width: 140px;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  font-family: 'object-fit: cover;';
  display: block;
  border: 0;
}

.modal-actions {
  padding: 16px 24px 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .modal-actions { background: #fff; }
}

.modal-btn {
  width: 100%;
  height: 50px;
  padding: 0 24px;
  border: none;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, -webkit-transform 0.15s, transform 0.15s;
}

.modal-btn:hover { background: var(--accent-hover); }
.modal-btn:active { -webkit-transform: scale(0.98); transform: scale(0.98); }

.modal-btn.is-disabled {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.modal-btn.is-disabled:hover { background: rgba(0, 0, 0, 0.06); }
.modal-btn.is-disabled:active { transform: none; }

/* Responsive */
@media (max-width: 600px) {
  .featured-body { -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 24px 20px; }
  .featured-body > * + * { margin-left: 0; margin-top: 16px; }
  .featured-body > .featured-icon + .featured-info { margin-top: 0; margin-left: 20px; }
  .featured-btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  :root { --chart-item-height: 88px; }

  .main {
    padding: 16px 16px 12px;
    padding-top: max(16px, var(--safe-top));
    padding-bottom: max(12px, var(--safe-bottom));
  }

  .chip { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 7px 14px; font-size: 12px; }
  .chart-item { padding: 14px 16px; }
  .chart-item > * + * { margin-left: 12px; }
  .chart-item:hover { padding-left: 16px; }
  .app-icon { width: 46px; height: 46px; }
  .get-btn { min-width: 50px; height: 28px; font-size: 12px; }
  .featured-name { font-size: 18px; }
  .featured-desc { white-space: normal; }

  .modal-sheet { max-height: 95vh; max-height: 95dvh; border-radius: 16px 16px 0 0; }
  .modal-hero { padding: 20px 20px 16px; }
  .modal-icon { width: 64px; height: 64px; border-radius: 16px; }
  .modal-title { font-size: 20px; }
  .modal-section { padding: 16px 20px 0; }
  .modal-info-row { margin: 0 20px; }
  .modal-actions { padding: 14px 20px 18px; padding-bottom: calc(18px + var(--safe-bottom)); }
  .modal-btn { height: 48px; font-size: 15px; }
  .screenshot { width: 120px; height: 240px; }
}

@media (min-width: 601px) {
  .modal-overlay {
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 24px;
  }

  .modal-sheet {
    border-radius: var(--radius);
    max-height: 88vh;
    max-height: 88dvh;
    -webkit-transform: translateY(30px) scale(0.96);
    transform: translateY(30px) scale(0.96);
    opacity: 0;
    transition: -webkit-transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
  }

  .modal-sheet.is-visible {
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .modal-handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
