﻿:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #666;
  --line: #ded8cc;
  --paper: #fffaf0;
  --gold: #d99a16;
  --charcoal: #252323;
  --red: #8a1616;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fff8e8 56%, #f1efe9 100%);
}

.app-shell, .admin-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 18px 36px;
}

.screen { display: none; }
.screen.active { display: block; }

.brand-block {
  text-align: center;
  padding: 18px 0 26px;
}
.brand-mark, .brand-mini {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6b6b6b, #161616);
  color: #f6d77a;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.brand-logo {
  display: block;
  width: min(100%, 520px);
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 14px;
}
.brand-mini-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-mark {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  margin: 0 auto 14px;
  font-size: 58px;
}
.brand-mini {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  font-size: 30px;
  flex: 0 0 auto;
}
.brand-kicker, .topbar p, .admin-header p {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
h1 { margin: 0 0 10px; font-size: 30px; }
.brand-block p { margin: 0 auto 18px; max-width: 680px; color: var(--muted); line-height: 1.55; font-size: 18px; }
.brand-block .faith-line { color: var(--ink); font-size: 22px; letter-spacing: 0; }

.panel, .devotional-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,.10);
}
.panel { padding: 18px; }
label { display: block; margin-bottom: 13px; font-weight: 700; }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cfc8bd;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: var(--charcoal);
  color: white;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: wait; }
.ghost { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.hidden { display: none !important; }
.message { min-height: 20px; color: var(--red); font-weight: 700; }

.topbar, .admin-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.topbar strong { font-size: 19px; }
.devotional-card { padding: 20px; }
.devotional-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
}
.reference { margin: 0 0 8px; color: var(--gold); font-weight: 800; }
h2 { margin: 0 0 14px; font-size: 28px; }
.music-prompt {
  min-height: 42px;
  padding: 9px 12px;
  background: var(--gold);
  color: #1a1204;
  font-size: 14px;
  line-height: 1.2;
}
blockquote {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  color: #323232;
  font-size: 18px;
  line-height: 1.45;
}
#textoDevocional { line-height: 1.62; font-size: 17px; white-space: pre-line; }
.prayer-image-button {
  display: block;
  width: min(100%, 420px);
  min-height: 0;
  margin: 16px 0;
  padding: 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.prayer-image-button img {
  display: block;
  width: 100%;
  height: auto;
}
.finish { margin-top: 8px; background: #1f5133; }
.video-box {
  margin: 14px 0;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.video-box iframe { width: 100%; height: 100%; border: 0; }
.app-footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 4px 0;
}
.app-footer img {
  width: 82px;
  height: auto;
  opacity: .82;
}
.admin-form { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; margin: 0; }

@media (max-width: 460px) {
  .app-shell, .admin-shell { padding: 16px 12px 26px; }
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  .brand-block p { font-size: 16px; }
  .brand-block .faith-line { font-size: 19px; }
  .devotional-head { grid-template-columns: 1fr; }
  .music-prompt { width: 100%; }
  .prayer-image-button { width: 100%; }
}
