/* The More page keeps its settings dialogs, but presents its destinations as a three-card reel. */
html:not([data-settings-embed="true"]) body:has(.more-grid.more-reel) { overflow: hidden; }
html:not([data-settings-embed="true"]) .page-wrap:has(.more-reel) {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 44px - var(--app-safe-top, 0px));
  min-height: 0;
  max-width: 760px;
  padding: 0 18px calc(89px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
html:not([data-settings-embed="true"]) .page-wrap:has(.more-reel) .more-header { display: none; }
html:not([data-settings-embed="true"]) .more-reel {
  --reel-step: clamp(64px, 9.5dvh, 86px);
  position: relative;
  display: block;
  flex: 0 0 clamp(334px, 46dvh, 440px);
  width: min(100%, 540px);
  max-width: none;
  margin: auto auto 0;
  padding: 0;
  overflow: visible;
  animation: none;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}
.more-reel-item {
  position: absolute;
  top: 50%; left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: clamp(132px, 18dvh, 156px);
  box-sizing: border-box;
  transform: translate(var(--fan-x, 0px), calc(-50% + var(--offset, 0) * var(--reel-step))) rotate(var(--tilt, 0deg)) scale(var(--scale, 1));
  opacity: var(--opacity, 1);
  filter: blur(var(--blur, 0px));
  z-index: var(--layer, 1);
  transition: transform .34s cubic-bezier(.2,.75,.2,1), opacity .3s, filter .3s, visibility .3s;
  will-change: transform, opacity, filter;
}
.more-reel.is-dragging .more-reel-item { transition: none; }
.more-reel.is-auto .more-reel-item { transition: none; }
.more-reel-item[data-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; }
.more-reel-item[data-side="above"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 40%, transparent 52%);
  mask-image: linear-gradient(to bottom, #000 0 40%, transparent 52%);
}
.more-reel-item[data-side="below"] {
  -webkit-mask-image: linear-gradient(to top, #000 0 47%, transparent 60%);
  mask-image: linear-gradient(to top, #000 0 47%, transparent 60%);
}
.more-reel-icon {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--text) 17%, transparent);
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: 0 5px 16px rgba(var(--shadow-color), .11), inset 0 1px 0 color-mix(in srgb, #fff 38%, transparent);
  color: var(--text);
  cursor: pointer;
}
.more-reel-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.more-reel-item .more-card,
html[data-appearance="dark"] .more-reel-item .more-card {
  position: relative;
  flex: 1;
  display: block;
  height: 100%;
  box-sizing: border-box;
  padding: 22px 42px 18px 105px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 31px;
  background: var(--bg-card);
  box-shadow: 0 14px 36px rgba(var(--shadow-color), .16), inset 0 1px 0 color-mix(in srgb, #fff 50%, transparent);
  color: var(--text);
  text-align: left;
  transition: none;
}
.more-reel-item .more-card:hover { transform: none; }
.more-reel-item .more-card .more-card-name,
html[data-appearance="dark"] .more-reel-item .more-card .more-card-name {
  display: block;
  margin: 1px 0 8px;
  color: var(--text);
  font: 500 clamp(22px, 5vw, 29px)/1.1 var(--font-d), var(--font-en), serif;
  letter-spacing: .015em;
}
.more-reel-item .more-card .more-card-desc,
html[data-appearance="dark"] .more-reel-item .more-card .more-card-desc {
  display: block;
  color: var(--text-light);
  font: 13px/1.45 var(--font-b), sans-serif;
  text-align: left;
  letter-spacing: .01em;
}
.more-reel-item .more-card::after {
  content: '↗';
  position: absolute;
  top: 23px; right: 22px;
  color: var(--text-light);
  font: 20px/1 var(--font-en), sans-serif;
}
.more-reel-art {
  position: absolute;
  z-index: 5;
  top: 15px; left: 83px;
  display: grid;
  place-items: center;
  width: clamp(63px, 8dvh, 72px);
  height: clamp(63px, 8dvh, 72px);
  padding: 0;
  border: 2px solid color-mix(in srgb, #fff 74%, var(--text));
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, var(--bg-card)), color-mix(in srgb, var(--bg-card) 90%, var(--text)));
  box-shadow: 0 4px 14px rgba(var(--shadow-color), .2);
  color: var(--text-light);
  cursor: pointer;
}
.more-reel-art img { width: 100%; height: 100%; object-fit: cover; }
.more-reel-art svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.more-reel-item[data-distance="0"] .more-reel-art:focus-visible,.more-reel-item[data-distance="0"] .more-reel-icon:focus-visible,.more-reel-item[data-distance="0"] .more-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html[data-theme="liquid-glass"] .more-reel-item .more-card,
html[data-theme="liquid-glass"][data-appearance="dark"] .more-reel-item .more-card,
html[data-theme="liquid-glass"] .more-reel-icon {
  background: color-mix(in srgb, var(--bg-card) 53%, transparent);
  border-color: var(--liquid-outline, rgba(255,255,255,.38));
  box-shadow: inset 0 1px 0 var(--liquid-rim-top,rgba(255,255,255,.5)), inset 1px 0 0 var(--liquid-rim-side,rgba(255,255,255,.16)), inset 0 -1px 0 var(--liquid-rim-bottom,rgba(255,255,255,.12)), 0 12px 28px var(--liquid-shadow,rgba(0,0,0,.18));
  -webkit-backdrop-filter: blur(var(--liquid-material-blur,10px)) saturate(130%);
  backdrop-filter: blur(var(--liquid-material-blur,10px)) saturate(130%);
}
@media (max-height: 670px) { html:not([data-settings-embed="true"]) .more-reel { flex-basis: 310px; --reel-step: 64px; } }
@media (max-width: 390px) { html:not([data-settings-embed="true"]) .page-wrap:has(.more-reel){padding-inline:12px}.more-reel-icon{flex-basis:48px;width:48px;height:48px}.more-reel-art{left:75px;width:62px;height:62px}.more-reel-item .more-card,html[data-appearance="dark"] .more-reel-item .more-card{padding-left:98px;padding-right:29px}.more-reel-item .more-card::after{right:13px} }
@media (prefers-reduced-motion: reduce) { .more-reel-item { transition-duration: .01ms; } }
