/* Bater Hora (pt, /bater-hora/) and Camera Sync Clock (en, /sync-clock/): the FlashRAW
   site's identity (../style.css), on its own so the offline app caches only this. */
@font-face { font-family: "Space Grotesk"; src: url(/fonts/SpaceGrotesk.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono.ttf) format("truetype"); font-weight: 100 800; font-display: block; }
:root { color-scheme: dark; --bg: #141414; --panel: #1f1f1f; --line: #2e2e2e; --text: #f2f2f2; --muted: #9a9a9a; --flash: #ffd400;
  --sans: "Space Grotesk", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
a { color: var(--flash); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.name img { width: 30px; height: 30px; border-radius: 7px; }
.links { display: flex; align-items: center; gap: 14px; }
.help { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #555; color: var(--text); font-weight: 700; text-decoration: none; }
.help:hover, .help:focus-visible { border-color: var(--flash); color: var(--flash); outline: none; }
.by { font-size: 14px; color: var(--muted); text-decoration: none; }
.by b { color: var(--text); } .by b span { color: var(--flash); }
.name, .by { white-space: nowrap; }
@media (max-width: 420px) { .name { font-size: 17px; gap: 8px; } .name img { width: 26px; height: 26px; } .links { gap: 10px; } .by { font-size: 13px; } }

/* The clock: as big as the width allows, digits in mono so nothing jumps. */
.clock { min-height: calc(100svh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8px 16px 24px; }
.date, .time { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.date { font-size: min(7.4vw, 96px); color: #d8d8d8; }
.time { font-size: min(13vw, 180px); font-weight: 600; letter-spacing: -0.02em; margin-top: .12em; }
.time span { color: var(--flash); }
.card { display: block; margin-top: 22px; border-radius: 6px; }
.zone { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 15px; color: #c8c8c8; }
.zone select { max-width: 100%; font: 14px var(--sans); color: var(--text); background: #262626; border: 1px solid #505050; border-radius: 6px; padding: 5px 8px; }
.status { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; color: var(--muted); max-width: 46ch; }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #666; vertical-align: 1px; }
.status.ok::before { background: #4caf50; } .status.off::before { background: #e5c14a; }
.install { margin-top: 14px; font: 600 15px var(--sans); color: #111; background: var(--flash); border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.install[hidden], .tip[hidden] { display: none; }
.tip { margin: 14px 0 0; padding: 10px 14px; max-width: 40ch; font-size: 15px; color: #d8d8d8; background: var(--panel); border-left: 3px solid var(--flash); border-radius: 0 8px 8px 0; text-align: left; }
.tip svg { width: 16px; height: 16px; vertical-align: -2px; fill: none; stroke: var(--flash); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* What it is for, for people and for search; hidden once installed as an app. */
.about { max-width: 68ch; padding-top: 40px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.about h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; margin: 40px 0 12px; }
.about p, .about li { color: #d0d0d0; }
.about ol { padding-left: 1.3em; }
.about li { margin: 6px 0; }
.cta { margin-top: 36px; padding: 16px 18px; border-left: 3px solid var(--flash); background: var(--panel); border-radius: 0 8px 8px 0; }
footer { border-top: 1px solid var(--line); padding: 24px 16px 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--text); }
@media (display-mode: standalone) { .about:not(:target), footer, .by { display: none; } }
.about img { width: 100%; max-width: 720px; height: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
.about kbd { font: 600 14px var(--sans); background: #2a2a2a; border: 1px solid #555; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.back { display: inline-block; margin-top: 28px; }
