/* YeeStudio updates — public page */
:root {
  --bg: #f2f4f6;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --surface-3: #e5e8eb;
  --text: #191f28;
  --text-2: #4e5968;
  --text-3: #8b95a1;
  --text-4: #b0b8c1;
  --line: #e5e8eb;
  --blue: #3182f6;
  --blue-strong: #1b64da;
  --blue-soft: #e8f3ff;
  --red: #f04452;
  --red-soft: #ffeeee;
  --green: #03b26c;
  --chip-active-bg: #191f28;
  --chip-active-text: #ffffff;
  --press: rgba(2, 32, 71, .06);
  --press-strong: rgba(2, 32, 71, .1);
  --shadow-card: 0 1px 2px rgba(2, 32, 71, .04), 0 4px 16px rgba(2, 32, 71, .04);
  --shadow-float: 0 2px 6px rgba(2, 32, 71, .06), 0 10px 28px rgba(2, 32, 71, .1);
  --shadow-bar: 0 6px 18px rgba(2, 32, 71, .06);
  --topbar-bg: rgba(242, 244, 246, .82);
  --focus: 0 0 0 3px rgba(49, 130, 246, .35);
  --mark-bg: rgba(255, 196, 0, .32);
  --radius-card: 24px;
  --topbar-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #101317;
  --surface: #1b1e24;
  --surface-2: #262a31;
  --surface-3: #31363e;
  --text: #f2f4f6;
  --text-2: #c3cad3;
  --text-3: #8b95a1;
  --text-4: #5f6873;
  --line: #2b3038;
  --blue: #4c97ff;
  --blue-strong: #7ab1ff;
  --blue-soft: rgba(76, 151, 255, .16);
  --red: #ff6b75;
  --red-soft: rgba(255, 107, 117, .14);
  --green: #2fd28f;
  --chip-active-bg: #f2f4f6;
  --chip-active-text: #191f28;
  --press: rgba(255, 255, 255, .07);
  --press-strong: rgba(255, 255, 255, .12);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, .04);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .45);
  --shadow-bar: 0 6px 18px rgba(0, 0, 0, .35);
  --topbar-bg: rgba(16, 19, 23, .82);
  --mark-bg: rgba(255, 196, 0, .26);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 84px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s ease, color .25s ease;
}

button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { margin: 0; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

.shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Press feedback: bubble + shrink ---------- */
.pressable {
  position: relative;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  transition: transform .18s var(--ease), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pressable::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: var(--press);
  opacity: 0;
  transform: scale(.88);
  transition: opacity .22s ease, transform .3s var(--ease);
  pointer-events: none;
}
.pressable.is-pressed,
.pressable:active {
  transform: scale(.96);
}
.pressable.is-pressed::after,
.pressable:active::after {
  opacity: 1;
  transform: scale(1);
}
.pressable:disabled { cursor: default; }
.pressable:disabled::after { display: none; }

@media (hover: hover) and (pointer: fine) {
  .pressable:hover::after { opacity: .65; transform: scale(1); }
  .pressable:disabled:hover::after { opacity: 0; }
}

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  margin-left: -4px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-control {
  position: relative;
  display: flex;
  gap: 2px;
  height: 40px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.theme-option {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--text-3);
}
.theme-option .icon { width: 18px; height: 18px; }
.theme-option::after { inset: 0; }
.theme-option.is-active { color: var(--chip-active-text); }
.theme-option { z-index: 1; }
.theme-control__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--chip-active-bg);
  box-shadow: 0 2px 6px rgba(2, 32, 71, .18);
  transition: transform .32s var(--ease), background-color .25s ease;
  pointer-events: none;
}
html[data-theme-mode="dark"] .theme-control__thumb { transform: translateX(36px); }
html[data-theme-mode="auto"] .theme-control__thumb { transform: translateX(72px); }

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-2);
}
.icon-button::after { inset: 0; background: var(--press-strong); }
.icon-button > span { display: grid; place-items: center; }
.theme-cycle { display: none; }

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}
.pill-button .icon { width: 18px; height: 18px; }
.pill-button::after { inset: 0; background: var(--press-strong); }

/* Brand mark: the YeeStudio "Y" glyph on a glossy blue squircle */
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(155deg, #5aa5ff 0%, #3182f6 52%, #1f6ae6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 -1.5px 0 rgba(0, 32, 92, .16),
    0 1px 2px rgba(0, 27, 55, .14),
    0 6px 14px -4px rgba(49, 130, 246, .55);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 75% at 28% -8%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}
.brand__mark svg {
  position: relative;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 35, 100, .25));
}
html[data-theme="dark"] .brand__mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 -1.5px 0 rgba(0, 0, 0, .2),
    0 0 0 1px rgba(255, 255, 255, .06),
    0 8px 18px -8px rgba(76, 151, 255, .6);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
}
.brand.is-pressed .brand__mark,
.brand:active .brand__mark { transform: scale(.94); }
.brand__name { letter-spacing: -.035em; white-space: nowrap; }
.brand__light { font-weight: 500; color: var(--text-2); }

/* ---------- Hero ---------- */
.public-main { padding: 36px 0 72px; }

.hero {
  display: grid;
  gap: 10px;
  margin: 0 4px 22px;
}
.hero__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.hero__lead {
  max-width: 34em;
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 0;
}
.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.4;
}
.hero-stat dt { color: var(--text-3); font-weight: 600; }
.hero-stat dd { margin: 0; color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.live-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 10px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.live-presence strong { color: var(--text); font-weight: 800; }
.live-presence strong + span { margin-left: -3px; }
.live-presence__dot {
  position: relative;
  width: 7px;
  height: 7px;
  margin-right: 1px;
  border-radius: 50%;
  background: var(--green);
}
.live-presence__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: .35;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.4); opacity: .45; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky;
  top: calc(var(--topbar-h) + env(safe-area-inset-top));
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 -20px 14px;
  padding: 8px 20px 10px;
  background: var(--bg);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.toolbar > * { min-width: 0; }
.toolbar.is-stuck { box-shadow: var(--shadow-bar); background: var(--topbar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px 0 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-3);
  transition: box-shadow .2s ease;
}
.search-box:focus-within { box-shadow: var(--shadow-card), inset 0 0 0 2px var(--blue); }
.search-box__lead { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.search-box__lead .icon { width: 20px; height: 20px; }
.search-box__lead .spinner { width: 17px; height: 17px; border-width: 2.2px; }
.toolbar.is-loading .search-box__lead .icon { display: none; }
.toolbar.is-loading .search-box__lead .spinner { display: block; }
.search-box__kbd {
  display: none;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-right: 8px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 var(--line);
  color: var(--text-3);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (hover: hover) and (pointer: fine) {
  .search-box__kbd { display: grid; }
  .search-box:focus-within .search-box__kbd,
  .search-box:has(.search-clear:not([hidden])) .search-box__kbd { display: none; }
}
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-box input::placeholder { color: var(--text-4); }
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-box input:focus-visible { box-shadow: none; }

.search-clear {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--surface);
}
.search-clear .icon {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--text-4);
  stroke-width: 2.6;
}

.app-filter-wrap {
  position: relative;
  margin: 0 -20px;
}
.app-filter-wrap::before,
.app-filter-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.app-filter-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.app-filter-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.toolbar.is-stuck .app-filter-wrap::before,
.toolbar.is-stuck .app-filter-wrap::after { display: none; }
.app-filter-wrap.has-left-overflow::before,
.app-filter-wrap.has-right-overflow::after { opacity: 1; }

.app-filter {
  display: flex;
  gap: 8px;
  padding: 4px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding: 0 20px;
}
.app-filter::-webkit-scrollbar { display: none; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  height: 40px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.filter-chip::after { inset: 0; background: var(--press-strong); }
.filter-chip.is-active {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  box-shadow: 0 4px 12px rgba(2, 32, 71, .16);
}
.filter-chip.is-active::after { background: rgba(255, 255, 255, .14); }
html[data-theme="dark"] .filter-chip.is-active::after { background: rgba(0, 0, 0, .1); }

.filter-chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 9px;
  font-size: 13px;
}
.filter-chip__icon--all {
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.filter-chip__icon--all .icon { width: 16px; height: 16px; }
.filter-chip.is-active .filter-chip__icon--all { background: rgba(255, 255, 255, .16); color: inherit; }
html[data-theme="dark"] .filter-chip.is-active .filter-chip__icon--all { background: rgba(0, 0, 0, .08); }

/* ---------- App mark ---------- */
.app-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
}
.app-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(2, 32, 71, .08);
  pointer-events: none;
}
html[data-theme="dark"] .app-mark::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.app-mark img { width: 100%; height: 100%; object-fit: cover; }
.app-mark--1 { background: linear-gradient(145deg, #2f80ed, #67a7ff); }
.app-mark--2 { background: linear-gradient(145deg, #6558f5, #9a90ff); }
.app-mark--3 { background: linear-gradient(145deg, #00a884, #50c9ad); }
.app-mark--4 { background: linear-gradient(145deg, #f59f00, #ffc55a); }
.app-mark--5 { background: linear-gradient(145deg, #e85975, #ff8ca1); }
.app-mark--6 { background: linear-gradient(145deg, #344563, #77849a); }
.app-mark:has(img) { background: var(--surface-2); }
.app-mark.is-fallback { animation: fade .25s ease both; }

/* ---------- Notice ---------- */
.app-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  white-space: pre-line;
  animation: rise .35s var(--ease) both;
}
.app-notice__icon { display: grid; place-items: center; color: var(--blue); padding-top: 1px; }

/* ---------- Release list ---------- */
.release-list {
  display: grid;
  gap: 12px;
  transition: opacity .2s ease;
}
.release-list.is-busy { opacity: .45; pointer-events: none; }

.release-card {
  padding: 22px 24px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--topbar-h) + 84px);
}
html.js-reveal .release-card.reveal { opacity: 0; transform: translateY(12px); }
html.js-reveal .release-card.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease var(--delay, 0ms), transform .5s var(--ease) var(--delay, 0ms);
}
.release-card.is-target { box-shadow: var(--shadow-card), 0 0 0 2px var(--blue); }
@media (hover: hover) and (pointer: fine) {
  html:not(.js-reveal) .release-card,
  html.js-reveal .release-card.reveal.is-visible { transition: opacity .45s ease var(--delay, 0ms), transform .5s var(--ease) var(--delay, 0ms), box-shadow .25s ease; }
  .release-card:hover { box-shadow: var(--shadow-float); }
}

.month-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 6px 2px;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.month-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.month-divider:first-child { margin-top: 0; }

.release-card mark {
  padding: 0 1px;
  border-radius: 4px;
  background: var(--mark-bg);
  color: inherit;
}

.release-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.release-head .app-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
}
.release-app {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.release-app strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.version-pill,
.meta-chip,
.disabled-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px 0 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.version-pill .icon,
.meta-chip .icon { width: 13px; height: 13px; stroke-width: 2.1; }
.version-pill { background: var(--blue-soft); color: var(--blue-strong); font-variant-numeric: tabular-nums; }
.meta-chip { background: var(--surface-2); color: var(--text-3); }
.meta-chip--store { color: var(--green); }
html:not([data-theme="dark"]) .meta-chip--store { color: #028a54; }
.meta-chip--store .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.disabled-badge { padding: 0 8px; background: var(--red-soft); color: var(--red); }

.release-date {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 5px;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.release-date .icon { width: 15px; height: 15px; }
.release-date.is-recent { color: var(--blue); }

.release-title {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.disabled-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.disabled-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.release-card.is-disabled .release-title { color: var(--text-2); }

.change-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.change-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.change-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-4);
}

.release-card.has-more-lg:not(.is-expanded) .change-list li:nth-child(n+7) { display: none; }

.change-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: calc(100% + 16px);
  height: 44px;
  margin: 12px -8px -6px;
  border-radius: 14px;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
}
.change-toggle::after { inset: 0; background: var(--press-strong); }
.change-toggle .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.change-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.release-card.has-more-lg .change-toggle { display: flex; }

.release-card.is-expanded .change-list li { animation: fade .3s ease both; }

/* ---------- States ---------- */
.state-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-2);
  text-align: center;
}
.state-card strong { font-size: 16px; font-weight: 700; }
.state-card__text { margin-top: -6px; color: var(--text-3); font-size: 14px; line-height: 1.5; }
.state-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
}
.state-card__icon .icon { width: 26px; height: 26px; }
.state-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  font-size: 14px;
  font-weight: 700;
}
.state-card__action .icon { width: 18px; height: 18px; }
.state-card__action::after { inset: 0; background: var(--press); }

/* ---------- Load more ---------- */
.load-more-row { margin-top: 12px; }
.load-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 54px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
}
.load-more-button::after { inset: 0; background: var(--press-strong); }
.load-more-button .icon { width: 18px; height: 18px; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.load-more-button.is-loading .spinner { display: block; }
.load-more-button.is-loading .icon { display: none; }

.list-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--text-4);
  font-size: 13px;
  font-weight: 600;
}
.list-end::before,
.list-end::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
}

/* ---------- Footer & to-top ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 calc(40px + env(safe-area-inset-bottom));
  color: var(--text-4);
  font-size: 13px;
  font-weight: 500;
}
.footer a { padding: 4px 8px; border-radius: 8px; color: var(--text-3); }
.footer__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.footer a::after { inset: 0; }

.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--text);
  animation: pop .3s var(--ease) both;
}
.to-top::after { inset: 0; background: var(--press-strong); }
.to-top .icon { width: 22px; height: 22px; stroke-width: 2.2; }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Desktop ---------- */
@media (min-width: 721px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
  }
  .search-box { order: 2; height: 44px; border-radius: 14px; }
  .app-filter-wrap { order: 1; margin: 0 0 0 -20px; }
  .app-filter { padding-right: 8px; }
  .app-filter-wrap::after { right: 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .toolbar { margin: 0 -16px 12px; padding: 8px 16px 10px; }
  .app-filter-wrap { margin: 0 -16px; }
  .app-filter { padding: 4px 16px; scroll-padding: 0 16px; }
  .public-main { padding-top: 22px; }
  .hero { gap: 8px; margin-bottom: 14px; }
  .hero__lead { font-size: 14.5px; }
  .hero-stat { min-height: 30px; padding: 5px 11px; font-size: 12.5px; }

  .theme-control { display: none; }
  .theme-cycle { display: grid; }
  .pill-button { padding: 0 12px; }
  .pill-button__text { display: none; }
  .pill-button[data-local-link] { width: 40px; padding: 0; justify-content: center; }

  .release-card { padding: 20px 20px 18px; border-radius: 22px; scroll-margin-top: calc(var(--topbar-h) + 132px); }
  .release-head .app-mark { width: 40px; height: 40px; border-radius: 12px; }
  .release-title { margin-top: 14px; font-size: 18px; }
  .change-list li { font-size: 14.5px; }

  .release-card.has-more-sm:not(.is-expanded) .change-list li:nth-child(n+4) { display: none; }
  .release-card.has-more-sm .change-toggle { display: flex; }
}

@media (max-width: 340px) {
  .brand__name { display: none; }
  .release-head { flex-wrap: wrap; }
  .release-date { order: 3; flex: 1 0 calc(100% - 52px); margin: 0 0 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .release-card.reveal { opacity: 1; transform: none; }
}
