/* ==========================================================================
   App Store — iOS design system
   SF-style type scale, system colors, squircles, frosted chrome, sheets.
   ========================================================================== */

:root {
  /* System colors (light) */
  --sys-blue: #007AFF;
  --sys-blue-press: #0062CC;
  --sys-gray: #8E8E93;
  --sys-gray2: #AEAEB2;
  --sys-gray3: #C7C7CC;
  --sys-gray4: #D1D1D6;
  --sys-gray5: #E5E5EA;
  --sys-gray6: #F2F2F7;
  --label: #000000;
  --label-2: rgba(60, 60, 67, 0.6);
  --label-3: rgba(60, 60, 67, 0.33);
  --sep: rgba(60, 60, 67, 0.12);
  --sep-strong: rgba(60, 60, 67, 0.2);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.2);
  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --card: #ffffff;
  --get-bg: rgba(120, 120, 128, 0.12);
  --get-fg: #007AFF;
  --chrome: rgba(249, 249, 249, 0.82);
  --chrome-border: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-press: 0 4px 14px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  --sheet-radius: 12px;
  --star-on: #F5A623;
  --star-off: #C7C7CC;
  --arcade-bg: #101018;

  /* Type scale (SF Pro approximation) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout metrics */
  --tabbar-h: 83px;
  --navbar-h: 54px;
  --content-max: 720px;
  --gutter: 20px;

  /* Motion */
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --dur-sheet: 480ms;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--label);
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: -0.013em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  letter-spacing: inherit;
}
img { display: block; max-width: 100%; }
svg { display: block; }
ul, ol { list-style: none; }
a { color: var(--sys-blue); text-decoration: none; }
::selection { background: rgba(0, 122, 255, 0.2); }

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

/* ------------------------------------------------------------------ shell */
#shell { height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }

#views {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  scrollbar-width: none;
}
.view::-webkit-scrollbar { display: none; }
.view.active { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ nav bar
   iOS pattern: transparent while large title shows; on scroll the bar gains
   blur + hairline and a small center title fades in. */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
  border-bottom: 0.5px solid transparent;
}
.navbar > .nav-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar.compact {
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom-color: var(--chrome-border);
}
.navbar.compact > .nav-title { opacity: 1; }
.navbar .nav-trailing {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  gap: 14px;
  align-items: center;
}
.navbar .nav-leading {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  display: flex;
  gap: 14px;
  align-items: center;
}

/* spacer that makes room for the sticky navbar overlay */
.nav-spacer { height: var(--navbar-h); }

/* ------------------------------------------------------------------ large header */
.page-head {
  padding: 6px var(--gutter) 0;
  max-width: var(--content-max);
  margin: 0 auto;
}
.page-head .eyebrow-date {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--label-2);
  margin-bottom: 2px;
}
.page-head .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.large-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.011em;
  line-height: 1.12;
}
.avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, #7AD4F8, #2B5CE6);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 150ms var(--ease-spring), filter 150ms ease;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.06);
}
.avatar-btn:active { transform: scale(0.9); filter: brightness(0.92); }

/* ------------------------------------------------------------------ content column */
.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px var(--gutter) calc(var(--tabbar-h) + 28px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 26px 0 12px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.section-head .see-all {
  font-size: 17px;
  color: var(--sys-blue);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: opacity 140ms ease;
}
.section-head .see-all:active { opacity: 0.4; }
.section-head .see-all svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ tab bar (iPhone) */
.tabbar {
  flex: none;
  height: var(--tabbar-h);
  padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: flex;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-top: 0.5px solid var(--chrome-border);
  position: relative;
  z-index: 50;
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--sys-gray);
  padding-top: 4px;
  border-radius: 10px;
  transition: color 160ms ease, transform 120ms var(--ease-spring);
}
.tabbar .tab:active { transform: scale(0.92); }
.tabbar .tab .tab-label { font-size: 10px; font-weight: 500; letter-spacing: 0.01em; }
.tabbar .tab.selected { color: var(--sys-blue); }
.tabbar .tab svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ sidebar (iPad/Mac) */
.sidebar { display: none; }

@media (min-width: 1024px) {
  :root {
    --tabbar-h: 0px;
    --content-max: 860px;
    --gutter: 32px;
  }
  #shell { flex-direction: row; }
  .tabbar { display: none; }
  .sidebar {
    display: flex;
    flex-direction: column;
    flex: none;
    width: 300px;
    padding: 28px 18px 20px;
    background: var(--bg-grouped);
    border-right: 0.5px solid var(--chrome-border);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar .side-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sidebar .side-brand .side-logo {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(160deg, #5BC8F5, #2B5CE6);
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  }
  .sidebar .side-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--label);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 120ms ease;
    text-align: left;
    width: 100%;
  }
  .sidebar .side-item svg { width: 22px; height: 22px; color: var(--sys-blue); }
  .sidebar .side-item:hover { background: rgba(120, 120, 128, 0.1); }
  .sidebar .side-item.selected { background: rgba(120, 120, 128, 0.16); }
  .sidebar .side-item:active { background: rgba(120, 120, 128, 0.22); }
  .sidebar .side-section {
    font-size: 13px;
    font-weight: 600;
    color: var(--label-2);
    padding: 22px 10px 6px;
  }
  .sidebar .side-cat { color: var(--label); font-weight: 400; font-size: 14px; }
  .sidebar .side-cat .cat-dot {
    width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px;
    background: rgba(120,120,128,0.12);
  }
  .sidebar .side-foot {
    margin-top: auto;
    padding: 16px 10px 0;
    font-size: 12px;
    color: var(--label-3);
    display: flex; flex-direction: column; gap: 8px;
  }
}

/* ------------------------------------------------------------------ Today cards */
.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transform: translateZ(0);
  transition: transform 260ms var(--ease-ios), box-shadow 260ms var(--ease-ios);
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: block;
}
.card:active, .card.pressed {
  transform: scale(0.965);
  box-shadow: var(--shadow-card-press);
  transition-duration: 120ms;
}
.card .card-art {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff;
  overflow: hidden;
}
.card:not(.tall) .card-art { min-height: 320px; }
.card .card-art .art-bg { position: absolute; inset: 0; }
.card .card-art .art-glyph {
  position: absolute;
  right: -30px; top: -34px;
  font-size: 200px;
  opacity: 0.28;
  rotate: -12deg;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  pointer-events: none;
  transition: transform 500ms var(--ease-ios);
}
.card:hover .card-art .art-glyph { transform: scale(1.05) rotate(2deg); }
.card .card-text { position: relative; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.card .eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.card .card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.16;
  max-width: 16em;
}
.card .card-body {
  font-size: 15px;
  line-height: 1.35;
  opacity: 0.92;
  margin-top: 6px;
  max-width: 24em;
}
.card .card-app {
  position: relative;
  z-index: 2;
  margin-top: 16px;
}

/* mini app chip inside cards */
.chip-app {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 8px 10px;
}
.chip-app .chip-meta { flex: 1; min-width: 0; color: #fff; text-shadow: none; display: flex; flex-direction: column; gap: 1px; }
.chip-app .chip-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-app .chip-sub { font-size: 12px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-app .getbtn { background: rgba(255,255,255,0.92); color: var(--sys-blue); }
.chip-app .getbtn .ring-track { stroke: rgba(0, 122, 255, 0.2); }

/* list / collection cards: light surface with rows */
.card.card-list .card-art { min-height: 0; padding-bottom: 8px; color: var(--label); }
.card.card-list .art-bg { opacity: 1; }
.card.card-list .card-text { text-shadow: none; }
.card.card-list .card-rows { position: relative; z-index: 2; padding: 4px 22px 20px; display: flex; flex-direction: column; }
.card.card-list .row-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-top: 0.5px solid rgba(60,60,67,0.14);
}
.card.card-list .row-mini:first-child { border-top: 0; }
.card.card-list .row-mini .rm-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.card.card-list .row-mini .rm-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.card-list .row-mini .rm-sub { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* event card timing pill */
.card .event-when {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  width: fit-content;
  position: relative; z-index: 2;
}
.card .event-when svg { width: 12px; height: 12px; }

/* story / how-to cards keep text over art but with a scrim */
.card .art-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.42), rgba(0,0,0,0) 55%); z-index: 1; }

/* ------------------------------------------------------------------ procedural art styles */
.art-bg { background: linear-gradient(165deg, var(--a1), var(--a2) 55%, var(--a3)); }
.art-bg::before, .art-bg::after { content: ""; position: absolute; pointer-events: none; }
.art-aurora::before {
  inset: -40% -20% 30% -20%;
  background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(255,255,255,0.5), transparent 70%),
              radial-gradient(ellipse 50% 60% at 75% 35%, rgba(255,255,255,0.28), transparent 70%);
  filter: blur(2px);
}
.art-aurora::after {
  inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}
.art-embers::before {
  inset: 0;
  background-image:
    radial-gradient(circle 3px at 20% 70%, rgba(255,220,150,0.9) 40%, transparent 60%),
    radial-gradient(circle 2px at 35% 55%, rgba(255,190,110,0.8) 40%, transparent 60%),
    radial-gradient(circle 3px at 55% 75%, rgba(255,220,150,0.9) 40%, transparent 60%),
    radial-gradient(circle 2px at 70% 60%, rgba(255,190,110,0.8) 40%, transparent 60%),
    radial-gradient(circle 4px at 85% 78%, rgba(255,220,150,0.85) 40%, transparent 60%),
    radial-gradient(circle 2px at 45% 85%, rgba(255,200,130,0.7) 40%, transparent 60%),
    radial-gradient(circle 2px at 12% 45%, rgba(255,190,110,0.7) 40%, transparent 60%);
}
.art-embers::after {
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255,120,40,0.55), transparent 65%);
}
.art-studio::before {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.12) 40.5%, rgba(255,255,255,0.12) 58%, transparent 58.5%),
    radial-gradient(circle 90px at 78% 30%, rgba(255,255,255,0.14), transparent 70%);
}
.art-studio::after {
  inset: auto 0 0 0; height: 40%;
  background: repeating-linear-gradient(to top, rgba(0,0,0,0.18) 0 14px, transparent 14px 28px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.art-field::before {
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 85% 15%, rgba(255,255,255,0.35), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 26px, rgba(255,255,255,0.06) 26px 28px);
}
.art-field::after {
  inset: auto 0 0 0; height: 55%;
  background: repeating-linear-gradient(to top, rgba(0,0,0,0.14) 0 2px, transparent 2px 22px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.art-neon::before {
  inset: 0;
  background:
    radial-gradient(ellipse 45% 35% at 25% 30%, rgba(34,229,240,0.5), transparent 70%),
    radial-gradient(ellipse 45% 35% at 78% 62%, rgba(160,80,255,0.5), transparent 70%);
  filter: blur(14px);
}
.art-neon::after {
  inset: auto 0 0 0; height: 34%;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.09) 0 1px, transparent 1px 9px);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}
.art-steps::before {
  inset: 0;
  background:
    linear-gradient(to top right, transparent 62%, rgba(255,255,255,0.16) 62.5%, rgba(255,255,255,0.16) 72%, transparent 72.5%),
    linear-gradient(to top right, transparent 42%, rgba(255,255,255,0.10) 42.5%, rgba(255,255,255,0.10) 54%, transparent 54.5%),
    linear-gradient(to top right, transparent 22%, rgba(255,255,255,0.07) 22.5%, rgba(255,255,255,0.07) 36%, transparent 36.5%);
}
.art-calm::before {
  inset: 0;
  background:
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(255,255,255,0.22), transparent 70%),
    radial-gradient(ellipse 60% 30% at 30% 20%, rgba(255,255,255,0.12), transparent 70%);
}
.art-calm::after {
  inset: auto 0 18% 0; height: 60px;
  background:
    radial-gradient(ellipse 40% 100% at 20% 100%, rgba(255,255,255,0.25), transparent 70%),
    radial-gradient(ellipse 40% 100% at 55% 100%, rgba(255,255,255,0.18), transparent 70%),
    radial-gradient(ellipse 40% 100% at 85% 100%, rgba(255,255,255,0.22), transparent 70%);
  filter: blur(6px);
}
.art-lighthouse::before {
  inset: 0;
  background:
    conic-gradient(from 250deg at 72% 30%, transparent 0deg, rgba(255,240,170,0.34) 14deg, transparent 26deg),
    conic-gradient(from 70deg at 72% 30%, transparent 0deg, rgba(255,240,170,0.22) 10deg, transparent 20deg),
    radial-gradient(circle 40px at 72% 30%, rgba(255,244,190,0.9), rgba(255,220,120,0.25) 55%, transparent 75%);
}
.art-lighthouse::after {
  inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent),
              repeating-linear-gradient(to top, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}

/* ------------------------------------------------------------------ app rows */
.row-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 0.5px solid var(--sep);
  cursor: pointer;
  transition: background-color 120ms ease;
  width: 100%;
  text-align: left;
}
.rows-group .row-app:first-child { border-top: 0; }
.row-app .ra-icon { flex: none; border-radius: 22.4%; }
.row-app .ra-icon svg { border-radius: 22.4%; }
.row-app .ra-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-app .ra-name {
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-app .ra-sub {
  font-size: 13px; color: var(--label-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-app .ra-stars { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.row-app .ra-stars .rcount { font-size: 12px; color: var(--label-3); }
.row-app .ra-rank {
  flex: none; width: 30px;
  font-size: 19px; font-weight: 600; color: var(--label-2);
  text-align: center; font-variant-numeric: tabular-nums;
}
.row-app .ra-action { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.row-app .iap-note { font-size: 10px; color: var(--label-3); letter-spacing: 0.01em; }

.stars { display: inline-flex; gap: 1.5px; color: var(--star-off); }
.stars .star-fg { color: var(--star-on); }

/* row press feedback */
.row-app { position: relative; }
.row-app::after {
  content: ""; position: absolute; inset: 4px calc(-1 * var(--gutter));
  border-radius: 12px; background: rgba(120,120,128,0.12);
  opacity: 0; transition: opacity 120ms ease; pointer-events: none;
}
.row-app:active::after { opacity: 1; }

/* ------------------------------------------------------------------ GET button + progress ring */
.getbtn {
  position: relative;
  min-width: 74px;
  height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--get-bg);
  color: var(--get-fg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 150ms var(--ease-spring), background-color 160ms ease, color 160ms ease;
  flex: none;
  overflow: hidden;
}
.getbtn:active { transform: scale(0.92); background: var(--fill-strong); }
.getbtn.installed { background: var(--get-bg); }
.getbtn.installing {
  min-width: 30px; width: 30px; padding: 0;
  background: transparent;
}
.getbtn.installing:active { transform: none; background: transparent; }
.getbtn .ring { width: 24px; height: 24px; }
.getbtn .ring-track { fill: none; stroke: rgba(120,120,128,0.25); stroke-width: 3; }
.getbtn .ring-fill {
  fill: none; stroke: var(--sys-blue); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 62.83; /* 2πr, r=10 */
  stroke-dashoffset: 62.83;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 90ms linear;
}
.getbtn .ring-stop {
  opacity: 0; fill: var(--sys-gray2);
  transition: opacity 150ms ease;
}
.getbtn.installing:hover .ring-stop { opacity: 1; }
.getbtn.installing:hover .ring-fill { opacity: 0.25; }

/* Arcade badge button variant */
.getbtn.arcade { letter-spacing: 0; font-size: 13px; }
.getbtn.arcade svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ scroll rails (cards carousels) */
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter) 14px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-card {
  width: 300px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-grouped);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 200ms var(--ease-ios), box-shadow 200ms ease;
  text-align: left;
  position: relative;
}
.rail-card:active { transform: scale(0.96); }
.rail-card .rc-art {
  height: 170px; position: relative; overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; padding: 14px;
}
.rail-card .rc-art .art-glyph { position: absolute; right: -18px; top: -18px; font-size: 110px; opacity: 0.28; rotate: -10deg; }
.rail-card .rc-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent); }
.rail-card .rc-art .rc-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.9; position: relative; }
.rail-card .rc-meta { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); }
.rail-card .rc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rail-card .rc-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-card .rc-sub { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 768px) {
  .rail-card { width: 340px; }
}

/* ------------------------------------------------------------------ feature banner (hero of Games/Apps) */
.hero-banner { margin-bottom: 8px; }

/* ------------------------------------------------------------------ categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-grouped);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: transform 150ms var(--ease-spring), background-color 140ms ease;
  text-align: left;
}
.cat-tile:active { transform: scale(0.96); background: var(--fill); }
.cat-tile .cat-emoji { font-size: 20px; }
.cat-tile svg { margin-left: auto; width: 14px; height: 14px; color: var(--sys-gray3); flex: none; }
.cat-tile .ct-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ search */
.searchbar-wrap {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  padding: 8px var(--gutter) 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 0.5px solid transparent;
  transition: border-color 200ms ease;
}
.searchbar-wrap.scrolled { border-bottom-color: var(--chrome-border); }
.searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  background: var(--fill);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--label-2);
  transition: background-color 160ms ease;
}
.searchbar:focus-within { background: var(--fill); }
.searchbar svg { width: 17px; height: 17px; flex: none; }
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0; outline: 0; background: none;
  font: inherit;
  font-size: 17px;
  color: var(--label);
  letter-spacing: -0.01em;
}
.searchbar input::placeholder { color: var(--label-2); }
.searchbar input::-webkit-search-cancel-button,
.searchbar input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.searchbar .clear-q {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sys-gray3);
  color: #fff;
  font-size: 10px;
  align-items: center; justify-content: center;
  flex: none;
}
.searchbar.has-text .clear-q { display: inline-flex; }
.search-cancel {
  color: var(--sys-blue);
  font-size: 17px;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 260ms var(--ease-ios), opacity 200ms ease, padding 260ms var(--ease-ios);
}
.searchbar-wrap.editing .search-cancel {
  max-width: 70px; opacity: 1; padding-left: 2px;
}

/* trending chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 7px 13px;
  background: var(--fill);
  border-radius: 999px;
  font-size: 15px;
  color: var(--label);
  cursor: pointer;
  transition: transform 140ms var(--ease-spring), background-color 140ms ease;
}
.chip:active { transform: scale(0.94); background: var(--fill-strong); }

/* suggestion list */
.suggest-list { background: var(--bg); }
.suggest-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px var(--gutter);
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  transition: background-color 100ms ease;
}
.suggest-item:active { background: var(--fill); }
.suggest-item svg { width: 17px; height: 17px; color: var(--sys-gray); flex: none; }
.suggest-item .s-term { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item .s-term b { font-weight: 600; }
.suggest-item .s-rest { color: var(--label-2); }

/* recent searches */
.recent-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 0;
  font-size: 16px;
  border-top: 0.5px solid var(--sep);
  cursor: pointer;
  text-align: left;
}
.recent-row:first-child { border-top: 0; }
.recent-row svg { width: 16px; height: 16px; color: var(--sys-gray); flex: none; }
.recent-row .rr-text { flex: 1; color: var(--sys-blue); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-quiet { color: var(--sys-blue); font-size: 15px; }
.link-quiet:active { opacity: 0.4; }

/* no results */
.no-results {
  text-align: center;
  padding: 70px 30px 40px;
  color: var(--label-2);
}
.no-results .nr-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.7; }
.no-results .nr-title { font-size: 20px; font-weight: 700; color: var(--label); margin-bottom: 6px; }
.no-results .nr-body { font-size: 15px; max-width: 300px; margin: 0 auto 22px; }

/* discover grid on search landing */
.discover-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 768px) { .discover-grid { grid-template-columns: repeat(3, 1fr); } }

/* search results header */
.results-head { padding: 18px 0 4px; font-size: 15px; color: var(--label-2); }
.results-head b { color: var(--label); }

/* ------------------------------------------------------------------ product sheet */
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.sheet-root.open { pointer-events: auto; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.28);
  opacity: 0;
  transition: opacity var(--dur-sheet) var(--ease-ios);
}
.sheet-root.open .sheet-scrim { opacity: 1; }
.sheet {
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(102%);
  transition: transform var(--dur-sheet) var(--ease-ios);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-root.open .sheet { transform: translateY(0); }
.sheet-root.closing .sheet { transition-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }

@media (min-width: 1024px) {
  .sheet {
    inset: 4.5% 5% 0;
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    box-shadow: 0 -8px 60px rgba(0,0,0,0.35);
  }
  .sheet-grabber { display: block !important; }
}
.sheet-grabber {
  display: none;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 22px;
  background: inherit;
  cursor: grab;
}
.sheet-grabber::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  translate: -50% 0;
  width: 36px; height: 5px;
  border-radius: 999px;
  background: var(--sys-gray3);
}
.sheet-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 12;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--label-2);
  display: grid; place-items: center;
  transition: transform 140ms var(--ease-spring), background-color 140ms ease;
}
.sheet-close:active { transform: scale(0.88); background: var(--fill-strong); }
.sheet-close svg { width: 14px; height: 14px; }
@media (max-width: 1023.98px) { .sheet-close { display: none; } }

/* product header */
.pd {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 60px;
}
.pd-head { display: flex; gap: 16px; padding: 26px 0 0; align-items: flex-start; }
@media (min-width: 1024px) { .pd-head { padding-top: 14px; } }
.pd-icon { flex: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.14)); }
.pd-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pd-name { font-size: 22px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.18; }
.pd-sub { font-size: 15px; color: var(--label-2); margin-top: 2px; }
.pd-dev { font-size: 14px; color: var(--sys-blue); margin-top: 4px; width: fit-content; }
.pd-dev:active { opacity: 0.4; }
.pd-head-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pd-price-note { font-size: 11px; color: var(--label-3); margin-top: 7px; }
.pd-share {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fill); color: var(--sys-blue);
  display: grid; place-items: center;
  transition: transform 140ms var(--ease-spring), background-color 140ms ease;
}
.pd-share:active { transform: scale(0.88); background: var(--fill-strong); }
.pd-share svg { width: 14px; height: 14px; }

/* stat row */
.stat-row {
  display: flex;
  margin-top: 20px;
  border-top: 0.5px solid var(--sep);
  border-bottom: 0.5px solid var(--sep);
}
.stat {
  flex: 1;
  min-width: 0;
  padding: 11px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5px;
  border-left: 0.5px solid var(--sep);
  text-align: center;
}
.stat:first-child { border-left: 0; }
.stat .s-cap {
  font-size: 11px; font-weight: 600; color: var(--label-3);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.stat .s-val { font-size: 15px; font-weight: 700; color: var(--label-2); letter-spacing: 0; }
.stat .s-val.big { font-size: 17px; }
.stat .s-sub { font-size: 11px; color: var(--label-3); }
.stat .s-age { font-size: 15px; font-weight: 700; color: var(--label-2); background: var(--fill); border-radius: 5px; padding: 1px 6px; }
.stat svg { color: var(--label-2); }

/* screenshots gallery */
.shots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 14px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: none;
  width: 210px;
  aspect-ratio: 210 / 410;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  border: 0.5px solid var(--sep);
  background: var(--shot-bg, #111);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  display: flex; flex-direction: column;
}
@media (min-width: 768px) { .shot { width: 240px; } }
.shot .shot-screen { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.shot .shot-headline {
  padding: 14px 14px 10px;
  font-size: 14px; font-weight: 700; line-height: 1.25;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  position: relative; z-index: 3;
}
/* mock ui skeletons inside screenshots */
.mock { flex: 1; position: relative; overflow: hidden; }
.mock .m-bar { position: absolute; left: 14px; right: 14px; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.24); }
.mock .m-card { position: absolute; border-radius: 12px; background: rgba(255,255,255,0.14); }
.mock .m-chip { position: absolute; height: 22px; border-radius: 11px; background: rgba(255,255,255,0.2); }
.mock .m-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock .m-line { position: absolute; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.mock .m-block { position: absolute; border-radius: 8px; }

/* section blocks within product page */
.pd-section { padding-top: 26px; }
.pd-section .pd-sec-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; }
.pd-section h3 { font-size: 20px; font-weight: 700; letter-spacing: 0.01em; }
.pd-section .see-all { font-size: 15px; }

/* what's new */
.wn-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--label-2); padding-bottom: 6px; }
.wn-body { font-size: 15px; color: var(--label); line-height: 1.45; }

/* preview/description */
.pd-desc { font-size: 15px; line-height: 1.45; color: var(--label); position: relative; }
.pd-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-btn {
  display: block;
  margin-left: auto;
  margin-top: 4px;
  color: var(--sys-blue);
  font-size: 15px;
}
.more-btn:active { opacity: 0.4; }
.pd-desc.expanded { white-space: pre-line; }

/* ratings & reviews */
.rr-grid { display: flex; gap: 18px; align-items: center; padding: 6px 0 16px; }
.rr-big { font-size: 56px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.rr-big-sub { font-size: 13px; color: var(--label-2); margin-top: 4px; }
.rr-hist { flex: 1; display: flex; flex-direction: column; gap: 3.5px; }
.rr-hrow { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--label-3); }
.rr-hrow .hbar { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.rr-hrow .hbar i { display: block; height: 100%; background: var(--sys-gray3); border-radius: 3px; }
.rr-count-line { font-size: 13px; color: var(--label-2); }
.review-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scrollbar-width: none; }
.review-cards::-webkit-scrollbar { display: none; }
.review-card {
  flex: none; width: 300px;
  scroll-snap-align: start;
  background: var(--bg-grouped);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.review-card .rv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.review-card .rv-title { font-size: 15px; font-weight: 700; }
.review-card .rv-by { font-size: 12px; color: var(--label-3); }
.review-card .rv-body { font-size: 13px; color: var(--label); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tap-rate { text-align: center; padding: 14px 0 4px; color: var(--label-2); font-size: 13px; }
.tap-rate .tr-stars { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.tap-rate .tr-stars svg { width: 30px; height: 30px; color: var(--fill-strong); cursor: pointer; transition: transform 140ms var(--ease-spring), color 140ms ease; }
.tap-rate .tr-stars svg:hover { color: var(--star-on); transform: scale(1.12); }
.tap-rate .tr-stars svg.lit { color: var(--star-on); }

/* app privacy */
.privacy-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 0.5px solid var(--sep);
}
.privacy-row svg { width: 22px; height: 22px; color: var(--sys-blue); flex: none; }
.privacy-row .pr-main { flex: 1; min-width: 0; }
.privacy-row .pr-title { font-size: 15px; font-weight: 600; }
.privacy-row .pr-sub { font-size: 13px; color: var(--label-2); }
.privacy-row > svg:last-child { color: var(--sys-gray3); width: 14px; height: 14px; }

/* information table */
.info-table { border-top: 0.5px solid var(--sep); font-size: 14px; }
.info-row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--sep);
}
.info-row .ir-k { color: var(--label-2); flex: none; }
.info-row .ir-v { text-align: right; color: var(--label); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.info-row .ir-v.blue { color: var(--sys-blue); }
.info-row .ir-sub { font-size: 12px; color: var(--label-3); }

/* supports / also-like rows reuse .row-app */

/* footer fine print */
.pd-foot { padding-top: 28px; font-size: 12px; color: var(--label-3); line-height: 1.5; }

/* ------------------------------------------------------------------ Arcade tab theme */
.view.view-arcade { background: var(--arcade-bg); color: #fff; }
.view-arcade .page-head .eyebrow-date { color: rgba(255,255,255,0.55); }
.view-arcade .navbar.compact { background: rgba(22, 22, 30, 0.82); border-bottom-color: rgba(255,255,255,0.1); }
.view-arcade .navbar > .nav-title { color: #fff; }
.view-arcade .section-head h2 { color: #fff; }
.view-arcade .rail-card { background: #1c1c26; }
.view-arcade .rail-card .rc-meta { background: #1c1c26; }
.view-arcade .rail-card .rc-name { color: #fff; }
.view-arcade .rail-card .rc-sub { color: rgba(255,255,255,0.55); }
.view-arcade .row-app { border-top-color: rgba(255,255,255,0.12); }
.view-arcade .row-app .ra-name { color: #fff; }
.view-arcade .row-app .ra-sub { color: rgba(255,255,255,0.55); }
.view-arcade .row-app::after { background: rgba(255,255,255,0.08); }
.view-arcade .getbtn { background: rgba(255,255,255,0.16); color: #fff; }
.view-arcade .getbtn:active { background: rgba(255,255,255,0.26); }
.view-arcade .getbtn .ring-track { stroke: rgba(255,255,255,0.25); }
.view-arcade .getbtn .ring-fill { stroke: #fff; }
.view-arcade .iap-note, .view-arcade .ra-stars .rcount { color: rgba(255,255,255,0.4); }
.view-arcade .row-app .ra-rank { color: rgba(255,255,255,0.5); }
.view-arcade .avatar-btn { box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.2); }

.arcade-hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter)) 8px;
  padding: 90px var(--gutter) 26px;
  overflow: hidden;
}
.arcade-hero .ah-bg { position: absolute; inset: 0; }
.arcade-hero .ah-inner { position: relative; z-index: 2; }
.arcade-hero .ah-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.arcade-hero .ah-kicker svg { width: 20px; height: 20px; }
.arcade-hero h2 { font-size: 30px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.1; color: #fff; }
.arcade-hero .ah-body { font-size: 15px; color: rgba(255,255,255,0.8); margin-top: 8px; max-width: 26em; }
.arcade-hero .ah-cta { margin-top: 16px; }
.arcade-hero .ah-glyph { position: absolute; right: -34px; bottom: -24px; font-size: 220px; opacity: 0.22; rotate: -10deg; pointer-events: none; }

.arcade-sub-card {
  margin-top: 30px;
  background: linear-gradient(160deg, #2B2B3D, #17171f);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 22px;
  color: #fff;
  text-align: center;
}
.arcade-sub-card .as-title { font-size: 20px; font-weight: 800; letter-spacing: 0.01em; }
.arcade-sub-card .as-body { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; line-height: 1.5; }
.arcade-sub-card .as-cta {
  margin-top: 16px;
  display: inline-block;
  background: #fff; color: #000;
  font-weight: 700; font-size: 15px;
  padding: 11px 26px;
  border-radius: 999px;
  transition: transform 150ms var(--ease-spring), filter 150ms ease;
}
.arcade-sub-card .as-cta:active { transform: scale(0.95); filter: brightness(0.9); }
.arcade-sub-card .as-fine { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 10px; }
.arcade-foot { text-align: center; padding: 34px 20px 10px; font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* subscription toast on arcade */
.sub-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h, 83px) + 18px);
  translate: -50% 0;
  z-index: 300;
  background: rgba(30,30,36,0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  border: 0.5px solid rgba(255,255,255,0.16);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 34px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 260ms ease, transform 320ms var(--ease-spring);
  pointer-events: none;
  display: flex; align-items: center; gap: 9px;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}
.sub-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.sub-toast svg { width: 17px; height: 17px; color: #5BF0A8; flex: none; }

/* ------------------------------------------------------------------ account sheet (small modal) */
.acct-list .row-app .ra-sub { text-transform: none; }
.acct-hero { display: flex; align-items: center; gap: 14px; padding: 24px 0 8px; }
.acct-hero .avatar-btn { width: 56px; height: 56px; font-size: 23px; }
.acct-hero .ah-name { font-size: 21px; font-weight: 700; }
.acct-hero .ah-mail { font-size: 14px; color: var(--label-2); }
.acct-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  font-size: 16px;
  color: var(--sys-blue);
  border-top: 0.5px solid var(--sep);
  text-align: left;
}
.acct-link:active { opacity: 0.4; }
.acct-link svg { width: 15px; height: 15px; color: var(--sys-gray3); }

/* pointer tactility (desktop hover) */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,0.18), 0 3px 10px rgba(0,0,0,0.09); }
  .card:active, .card.pressed { transform: scale(0.965); box-shadow: var(--shadow-card-press); }
  .rail-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.12); }
  .rail-card:active { transform: scale(0.96); }
  .getbtn:hover { filter: brightness(0.97); }
  .cat-tile:hover { background: var(--fill); }
  .chip:hover { background: var(--fill-strong); }
}

/* ------------------------------------------------------------------ misc */
.empty-note { padding: 26px 4px; color: var(--label-2); font-size: 15px; text-align: center; }
.hidden { display: none !important; }

/* reduced-transparency fallback */
@media (prefers-reduced-transparency: reduce) {
  .navbar.compact, .tabbar, .searchbar-wrap { background: #f9f9f9; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* large-desktop polish: widen today feed slightly, two-up cards on very wide */
@media (min-width: 1440px) {
  :root { --content-max: 960px; }
  .today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .today-grid .card { margin-bottom: 0; }
  .today-grid .card.span-2 { grid-column: span 2; }
}
