/* hindu-panchang.in fresh feel (15 Oct 2026) — same tokens, squircles and motion as the 0.2.34 / 1.3 apps.
   Loaded after site.css; site.css's :root now carries the app palette so older pages follow too. */
:root {
  --raat: #140E22; --mandir: #1C1430; --mandir2: #251B3D;
  --good: #7FD3A6; --warn: #F28A5B; --muted: #B9AE92; --line: rgba(232,213,163,.14);
  --glass: rgba(28,20,48,.62);
  --ease-snap: cubic-bezier(.22,1.2,.36,1); --ease-bounce: cubic-bezier(.34,1.56,.64,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px;
}
body { background: var(--raat); }
.sky, .grain { display: none; }
.page { max-width: 1200px; padding: 0 24px 56px; }

/* squircles */
.sq, .card, .btn, .chip, .f-card, .f-tile { corner-shape: squircle; }

/* glass header */
.f-head { position: sticky; top: 0; z-index: 40; margin: 0 -24px 0; padding: 0 24px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line); }
.f-head-in { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 12px; font-family: var(--display); font-size: 1.5rem; color: var(--kesar); }
.f-brand svg { width: 26px; height: 32px; }
.f-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.f-nav a { color: var(--chandan); text-decoration: none; font-size: 1rem; padding: 10px 12px; border-radius: var(--r-sm); transition: background .25s ease, color .25s ease; }
.f-nav a:hover { background: rgba(255,255,255,.05); color: var(--doodh); }
.f-nav a.on { color: var(--kesar); background: rgba(240,180,41,.10); }
.f-city { font-size: .95rem; color: var(--chandan); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.f-head .font-tools button { min-height: 38px; border-radius: 999px; }
.f-get { min-height: 42px !important; padding: 0 18px !important; font-size: .95rem !important; }
.f-menu { display: none; }
@media (max-width: 860px) {
  .f-menu { display: inline-flex; margin-left: auto; min-height: 44px; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--chandan); }
  .f-nav, .f-head .font-tools, .f-get, .f-city { display: none; }
  .f-head.open .f-nav { display: flex; flex-direction: column; flex-basis: 100%; padding-bottom: 8px; }
  .f-head.open .f-nav a { min-height: 48px; display: flex; align-items: center; font-size: 1.1rem; }
  .f-head.open .font-tools { display: inline-flex; padding-bottom: 12px; }
}

/* buttons, chips, cards */
.btn { border-radius: var(--r-md); min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
  background: linear-gradient(180deg, #F6C24A, #E5A21B); color: #2A1A05; border: 0; box-shadow: 0 6px 20px rgba(240,180,41,.25), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .16s var(--ease-bounce), filter .16s ease, box-shadow .3s ease; text-decoration: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240,180,41,.3); color: #2A1A05; }
.btn:active { transform: scale(.95); filter: brightness(1.1); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--chandan); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { color: var(--doodh); border-color: rgba(240,180,41,.35); }
.btn:focus-visible, .chip:focus-visible, .f-nav a:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--kesar); outline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .9rem; line-height: 1.3; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--chandan); }
.chip.kes { color: var(--kesar); border-color: rgba(240,180,41,.4); background: rgba(240,180,41,.14); }
.chip.good { color: #CFF3DE; border-color: rgba(127,211,166,.35); background: rgba(127,211,166,.10); border-radius: var(--r-sm); }
.chip.warn { color: #FFD2BF; border-color: rgba(242,138,91,.4); background: rgba(242,138,91,.12); border-radius: var(--r-sm); }
button.chip { cursor: pointer; transition: transform .16s var(--ease-bounce), background .25s; }
button.chip:active { transform: scale(.95); }
.card { border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); }
.lift { transition: transform .32s var(--ease-snap), box-shadow .32s ease, border-color .32s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35); border-color: rgba(240,180,41,.35); }
.f-muted { color: var(--muted); }
.f-num { font-variant-numeric: tabular-nums; }
.f-h { font-family: var(--display); font-weight: 400; color: var(--doodh); margin: 0; }

/* home */
.f-hero { display: flex; flex-wrap: wrap; gap: 28px; padding: 44px 0 20px; }
.f-hero-main { flex: 999 1 520px; min-width: 0; }
.f-hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.f-tithi { font-family: var(--display); font-size: clamp(3rem, 7vw, 4.75rem); line-height: 1.2; color: var(--doodh); margin: 10px 0 0; font-weight: 400; }
.f-sub { font-size: 1.25rem; color: var(--chandan); }
.f-angas { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 22px; }
.f-anga { padding: 14px 16px; }
.f-anga .k { color: var(--muted); font-size: .82rem; }
.f-anga .v { color: var(--doodh); font-size: 1.25rem; font-weight: 600; }
.f-anga .e { color: var(--muted); font-size: .82rem; }
.f-ringcard { padding: 22px; display: flex; align-items: center; gap: 20px; }
.f-ring { width: 132px; height: 132px; flex: 0 0 132px; }
.f-ring .track { stroke: rgba(232,213,163,.12); }
.f-ring .val { stroke: var(--kesar); transition: stroke-dashoffset 1s var(--ease-out); }
.f-big { font-family: var(--display); font-size: 2.75rem; line-height: 1.1; color: var(--doodh); }
.f-next { padding: 20px; }
.f-next .t { font-family: var(--display); font-size: 2.75rem; color: var(--good); }
.f-bar { display: flex; gap: 4px; margin-top: 12px; height: 9px; }
.f-bar span { flex: 1; border-radius: 999px; background: rgba(242,138,91,.35); }
.f-bar span.g { background: var(--good); }
.f-bar span.c { background: rgba(127,211,166,.55); }
.f-bar span.r { background: rgba(242,138,91,.6); }
.f-barlbl { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.f-strip { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 10px; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.f-strip::-webkit-scrollbar { display: none; }
.f-day { flex: 0 0 76px; height: 86px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--chandan); transition: transform .16s var(--ease-bounce), border-color .25s; }
.f-day:hover { border-color: rgba(240,180,41,.4); transform: translateY(-2px); }
.f-day:active { transform: scale(.95); }
.f-day.on { background: linear-gradient(180deg, #F6C24A, #E5A21B); color: #2A1A05; border-color: transparent; }
.f-day .n { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.f-day .w, .f-day .t { font-size: .72rem; }
.f-sec { padding-top: 28px; }
.f-pad { padding: 22px; }
.f-row { display: flex; gap: 10px; flex-wrap: wrap; }
.f-two { display: flex; flex-wrap: wrap; gap: 16px; }
.f-two > * { flex: 1 1 360px; min-width: 0; }
.f-fest { text-decoration: none; display: block; background: linear-gradient(135deg, rgba(226,58,47,.22), rgba(240,180,41,.12)); border-color: rgba(240,180,41,.3); }
.f-lamps { display: flex; gap: 10px; margin-top: 14px; align-items: flex-end; }
.f-lamps svg { width: 26px; height: 38px; }
.f-lamps .flame { transform-origin: 50% 100%; animation: f-flicker 1.6s ease-in-out infinite; }
.f-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.f-fact { position: relative; height: 220px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1000px; font: inherit; color: inherit; text-align: left; }
.f-fact .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.34,1.4,.64,1); }
.f-fact.flipped .in { transform: rotateY(180deg); }
.f-fact .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: var(--r-lg); }
.f-fact .front { background: linear-gradient(160deg, #2A1F45, #1C1430); border: 1px solid rgba(240,180,41,.25); }
.f-fact .front .q { font-family: var(--display); font-size: 1.4rem; line-height: 1.4; color: var(--doodh); }
.f-fact .back { transform: rotateY(180deg); background: linear-gradient(160deg, #F6C24A, #E5A21B); color: #2A1A05; }
.f-fact .back .a { font-size: 1.1rem; line-height: 1.6; font-weight: 600; }
.f-ask { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; text-decoration: none; flex-wrap: wrap; border-radius: var(--r-lg);
  background: var(--glass); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--line); }
.f-orb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FFE6A6, #F0B429 45%, #C9461F 100%); box-shadow: 0 0 0 6px rgba(240,180,41,.12), 0 10px 28px rgba(226,58,47,.35); animation: f-breathe 4.8s ease-in-out infinite; }
.f-app { padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: linear-gradient(140deg, #251B3D, #1C1430); border: 1px solid rgba(240,180,41,.22); border-radius: var(--r-lg); }
.f-app .copy { flex: 999 1 420px; min-width: 0; }
.f-app .cta { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.f-app .btn { height: 56px; }
.f-skel { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04)); background-size: 200% 100%; animation: f-shimmer 1.6s linear infinite; border-radius: var(--r-sm); color: transparent !important; }
.f-haze { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: -1; animation: f-drift 14s ease-in-out infinite; }

/* upcoming (पर्व) */
.f-up { padding: 6px 10px; }
.f-uprow { display: flex; align-items: center; gap: 16px; padding: 12px; flex-wrap: wrap; border-radius: var(--r-md); transition: background .25s ease, transform .3s var(--ease-snap); }
.f-uprow:hover { background: rgba(255,255,255,.035); transform: translateX(4px); }
.f-date { width: 64px; flex: 0 0 64px; padding: 6px 0; text-align: center; border-radius: var(--r-md); }
.f-date .d { font-size: 1.4rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.f-date .d.rng { font-size: 1rem; }
.f-date .w { font-size: .7rem; color: var(--muted); }
.k-fest { background: rgba(240,180,41,.18); } .k-vrat { background: rgba(127,211,166,.16); } .k-warn, .k-pitru { background: rgba(242,138,91,.18); }

/* calendar day sheet: blur the month behind it */
.cal-day { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(10,6,20,.45) !important; }
.cal-day-sheet { border-radius: var(--r-lg) !important; corner-shape: squircle; background: rgba(37,27,61,.92) !important; border: 1px solid var(--line) !important;
  box-shadow: 0 40px 80px rgba(0,0,0,.5); animation: f-pop .5s cubic-bezier(.34,1.3,.64,1) both; }

/* ask */
.f-askwrap { max-width: 860px; margin: 0 auto; padding: 44px 0 20px; display: flex; flex-direction: column; gap: 18px; }
.f-bigorb { width: 128px; height: 128px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: radial-gradient(circle at 35% 30%, #FFE6A6, #F0B429 45%, #C9461F 100%);
  box-shadow: 0 0 70px rgba(240,180,41,.35); animation: f-breathe 4.8s ease-in-out infinite; transition: width .5s var(--ease-bounce), height .5s var(--ease-bounce); }
.f-bigorb.small { width: 84px; height: 84px; }
.f-bigorb.think { animation-duration: 1.2s; }
.f-bigorb.think::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--doodh); border-left-color: rgba(246,239,226,.35); animation: f-spin .9s linear infinite; }
.f-input { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: var(--r-lg); background: var(--glass); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--line); }
.f-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--doodh); font: inherit; font-size: 1.05rem; height: 48px; outline: none; }
.f-q { align-self: flex-end; max-width: 80%; background: rgba(240,180,41,.16); padding: 12px 16px; border-radius: 20px 20px 6px 20px; }
.f-sug { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.f-sug button { text-align: left; padding: 14px 16px; font-size: 1rem; color: var(--doodh); cursor: pointer; }

/* motion */
.f-st > * { animation: f-rise .7s var(--ease-snap) both; }
.f-st > *:nth-child(2) { animation-delay: .07s; } .f-st > *:nth-child(3) { animation-delay: .14s; } .f-st > *:nth-child(4) { animation-delay: .21s; } .f-st > *:nth-child(5) { animation-delay: .28s; }
@keyframes f-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes f-pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); } }
@keyframes f-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes f-flicker { 0%,100% { transform: scaleY(1); } 30% { transform: scaleY(1.08) translateY(-1px); } 60% { transform: scaleY(.95); } }
@keyframes f-spin { to { transform: rotate(360deg); } }
@keyframes f-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes f-drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(12px,-10px,0); } }
@media (prefers-reduced-motion: reduce) {
  .f-st > *, .f-orb, .f-bigorb, .f-lamps .flame, .f-haze, .f-skel, .cal-day-sheet { animation: none !important; }
  .lift:hover, .f-day:hover, .f-uprow:hover, .btn:hover { transform: none; }
  .f-fact .in { transition: none; } .f-ring .val { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .f-head, .f-ask, .f-input, .cal-day { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--mandir) !important; }
}

/* calendar cells */
.cal-cell { border-radius: var(--r-sm) !important; corner-shape: squircle; transition: transform .25s var(--ease-snap), background .25s, border-color .25s; }
.cal-cell.has:hover { transform: translateY(-2px); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--kesar) !important; background: rgba(240,180,41,.12) !important; }
.cal-month h2 { font-family: var(--display); color: var(--doodh); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row input { flex: 1 1 240px; min-height: 48px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--doodh); }
.hit { padding: 10px 0; border-bottom: 1px solid rgba(232,213,163,.06); }
.kicker { color: var(--kesar); }
footer { border-top: 1px solid rgba(232,213,163,.08); margin-top: 32px; padding-top: 18px; color: var(--muted); }
.font-tools button { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--chandan); min-width: 40px; padding: 0 10px; cursor: pointer; }
.font-tools button.on { background: rgba(240,180,41,.18) !important; color: var(--kesar) !important; border-color: rgba(240,180,41,.45) !important; }
.f-hero .card, .f-two > .card, .f-angas .card, .f-sec .card, .f-askwrap .card, .f-up, .f-sug .card { margin: 0; }
.f-angas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .f-angas { gap: 8px; } .f-anga { padding: 10px 12px; } .f-anga .v { font-size: 1.05rem; } }
