.prayer-section, .prayer-download-section { --prayer-accent: var(--night-corner-blue); --prayer-accent-text: var(--prayer-accent); color: var(--text); }
html[data-theme="dark"] .prayer-section { --prayer-accent-text: var(--night-accent); }
.home-page .prayer-section { padding: 76px 0 64px; background: var(--canvas); }
.prayer-section[hidden], .prayer-section [hidden], .prayer-download-section[hidden], .prayer-download-section [hidden] { display: none !important; }
.prayer-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.prayer-heading .section-kicker { color: var(--text-muted); }
.home-page .prayer-heading .section-kicker::before { background: var(--prayer-accent-text); }
.prayer-heading h2 { font-size: clamp(24px, 3vw, 34px); margin: 5px 0 8px; line-height: 1.2; letter-spacing: -.03em; }
.prayer-date, .prayer-heading p { font-size: 14px; color: var(--text-muted); margin: 0; }
.prayer-countdown { font-variant-numeric: tabular-nums; color: var(--prayer-accent-text); font-weight: 600; font-size: 14px; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.prayer-tile { position: relative; min-height: 190px; padding: 20px 16px 54px; display: flex; flex-direction: column; gap: 12px; border: 0px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-unified); transition: transform .25s ease, background-color .25s ease; }
.prayer-tile:hover { transform: translateY(-3px); }
.prayer-tile-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.prayer-tile-hint { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.prayer-tile-time { margin-top: auto; font-size: clamp(27px, 2.7vw, 36px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.prayer-tile-state { position: absolute; top: -12px; right: 10px; padding: 5px 8px; background: var(--prayer-accent); color: #fff; border-radius: var(--radius); font-size: 11px; font-weight: 600; white-space: nowrap; }
.prayer-tile-iqama, .prayer-tile-friday { position: absolute; bottom: 0; left: 0; right: 0; min-height: 36px; display: flex; align-items: center; justify-content: center; padding: 7px 4px; border-radius: 0 0 var(--radius) var(--radius); background: var(--prayer-accent); color: #fff; font-size: 11px; text-align: center; }
.prayer-tile-iqama { justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; padding-inline: 10px; }
.prayer-iqama-offset { color: #fff; font-weight: 650; white-space: nowrap; }
.prayer-iqama-time { margin-inline-start: auto; text-align: right; white-space: nowrap; }
.prayer-tile.is-next { background: color-mix(in srgb, var(--prayer-accent) 5%, var(--surface)); animation: prayer-breathe 6s ease-in-out infinite; }
.prayer-tile.is-next::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 25%, color-mix(in srgb, var(--prayer-accent-text) 10%, transparent) 48%, transparent 70%); background-size: 240% 100%; animation: prayer-shine 8s ease-in-out infinite; }
.prayer-tile.is-friday { border-color: var(--prayer-accent); background: var(--prayer-accent); color: #fff; }
.prayer-tile.is-friday .prayer-tile-hint { color: rgba(255, 255, 255, .85); }
.prayer-tile.is-friday .prayer-tile-friday { background: rgba(255, 255, 255, .12); border-top: 1px solid rgba(255, 255, 255, .15); font-weight: 600; }
.prayer-tile.is-friday .prayer-tile-state { background: var(--surface); color: var(--prayer-accent-text); }
.prayer-tile.is-friday.is-next { animation: none; background: var(--prayer-accent); }
.prayer-tile.is-friday.is-next::after { background-image: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .12) 48%, transparent 70%); }
.prayer-status, .prayer-notice { color: var(--text-muted); font-size: 13px; line-height: 1.6; white-space: pre-line; }
.prayer-status:empty, .prayer-notice:empty { display: none; }
.prayer-notice { margin: 22px 0 0; }
.prayer-download-section { position: relative; padding: 76px 0 72px; background: var(--night-section-background); }
.prayer-download-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; width: 100%; padding: 34px; border: 0; border-radius: var(--radius); background: #fff; color: #131821; box-shadow: var(--shadow-unified); transition: transform .25s ease; }
.prayer-download-panel > * { position: relative; z-index: 1; }
.prayer-download-panel:hover { transform: translateY(-3px); }
.prayer-download-copy { min-width: 0; }
.prayer-download-copy h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.018em; color: #131821; margin: 0 0 8px; }
.prayer-download-copy p { max-width: 760px; margin: 0; color: #687385; font-size: inherit; line-height: 1.65; }
.prayer-download-copy .prayer-download-status { font-size: 13px; margin-top: 8px; }
.prayer-download-status:empty { display: none; }
.prayer-download-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.home-page .prayer-download-panel .prayer-download-button, .home-page .prayer-download-panel .prayer-month-button { min-height: 48px; border-radius: 30px; white-space: nowrap; }
@keyframes prayer-breathe { 50% { background: color-mix(in srgb, var(--prayer-accent) 8%, var(--surface)); } }
@keyframes prayer-shine { 0%, 25% { background-position: 180% 0; } 75%, 100% { background-position: -100% 0; } }
@media (max-width: 1100px) { .prayer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; } }
@media (max-width: 1100px) { .prayer-download-panel { grid-template-columns: minmax(0, 1fr); } .prayer-download-actions { justify-self: end; } }
@media (max-width: 600px) {
  .home-page .prayer-section { padding: 54px 0 44px; }
  .prayer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .prayer-tile { min-height: 180px; padding: 18px 14px 66px; }
  .prayer-tile-name { font-size: 15px; }
  .prayer-heading { margin-bottom: 28px; }
  .prayer-download-section { padding: 34px 0; }
  .prayer-download-panel { padding: 24px; gap: 18px; }
  .prayer-download-actions { width: 100%; flex-direction: column; }
  .home-page .prayer-download-panel .prayer-download-button, .home-page .prayer-download-panel .prayer-month-button { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .prayer-tile, .prayer-tile.is-next, .prayer-tile.is-next::after { animation: none; transition: none; } .prayer-tile:hover, .prayer-download-panel:hover { transform: none; } .prayer-download-panel { transition: none; } }
