* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(160deg, #2b1055 0%, #4b1d6e 45%, #7b2d8e 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 18px 60px;
  padding-left: calc(18px + env(safe-area-inset-left));
  padding-right: calc(18px + env(safe-area-inset-right));
  padding-top: calc(40px + env(safe-area-inset-top));
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
.page-title {
  text-align: center;
  font-weight: 500;
  letter-spacing: .5px;
  margin-bottom: 28px;
  opacity: .9;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 22px 20px 16px;
  backdrop-filter: blur(6px);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.card-text {
  margin: 0 0 14px;
  line-height: 1.9;
  font-size: 1.02rem;
  white-space: pre-line;
}
.card-actions {
  display: flex;
  gap: 14px;
}
.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.05rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s ease, transform .1s ease;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.active.like-btn { background: #ff5577; border-color: #ff5577; }
.icon-btn.active.save-btn { background: #ffb347; border-color: #ffb347; color: #3a2400; }

@media (max-width: 420px) {
  .wrap { padding: 24px 12px 40px; }
}

.icon-btn.react-btn.active { background: rgba(255, 211, 110, .25); border-color: #ffd36e; }
.react-picker {
  position: absolute;
  left: 12px;
  bottom: 66px;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(30, 14, 56, .96);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  z-index: 5;
  animation: pick-in .15s ease-out;
}
@keyframes pick-in { from { opacity: 0; transform: translateY(6px) scale(.95); } to { opacity: 1; transform: none; } }
.react-opt {
  background: none;
  border: 0;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .1s, background .15s;
}
.react-opt:active { transform: scale(1.25); background: rgba(255, 255, 255, .12); }

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  background: rgba(30, 12, 58, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.top-brand { font-weight: 600; letter-spacing: .3px; }
.top-updated { font-size: .78rem; opacity: .75; text-align: right; }
.top-updated b { font-weight: 600; }
.top-bar + .wrap { padding-top: 24px; }
