:root { --green:#0A4B2E; --mid:#00733E; --cream:#F9F3E4; --cream2:#EFE3C4; --gold:#B8862E; --red:#C62828; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--cream); color: #000; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: 96px; }
h2, .brand, .splash-brand { font-family: Georgia, "Times New Roman", serif; }

.flag-rule { height: 6px; background: linear-gradient(to right, var(--mid) 0 33.3%, var(--cream) 33.3% 66.6%, var(--mid) 66.6%); }

header { background: var(--green); color: var(--cream); display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; }
.logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.brand { font-size: 22px; font-weight: 700; }
.brand-sub { font-size: 12px; color: #dce9df; }

.install { background: var(--cream2); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.install[hidden] { display: none; }
.install button { background: var(--mid); color: #fff; border: 0; padding: 8px 16px; border-radius: 4px; font-weight: 700; }

.section-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px; }
h2 { margin: 0; font-size: 20px; color: var(--green); }
.badge { background: var(--green); color: var(--cream); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }

#feed { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 10px; }
.card { background: #fff; border-left: 4px solid var(--mid); border-radius: 6px; padding: 14px; cursor: pointer; }
.card:active { background: #f4f4ef; }
.top-row { display: flex; gap: 12px; }
.emoji { font-size: 24px; line-height: 1.2; }
.body { flex: 1; }
.top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
.tag { font-weight: 700; color: var(--mid); }
.card.flagship .tag { color: var(--red); }
.time { opacity: .6; }
.title { font-size: 16px; line-height: 1.4; font-weight: 600; }
.card.unread .title { font-weight: 800; }
.cta { margin-top: 10px; color: var(--mid); font-weight: 700; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex: none; }
.card:not(.unread) .dot { display: none; }

.preview { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; margin-top: 10px; background: #eee; }
.video-thumb { position: relative; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.video-thumb .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; margin-top: 10px; border-radius: 4px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ticker { display: block; background: var(--gold); color: #fff; overflow: hidden; white-space: nowrap; padding: 9px 0; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 16s linear infinite; font-weight: 700; font-size: 14px; }
.ticker:active .ticker-track, .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--cream2); padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); }
.btn { width: 100%; background: var(--mid); color: #fff; border: 0; border-radius: 6px; padding: 14px; font-size: 16px; font-weight: 700; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 100px; background: #000; color: #fff; padding: 12px 14px; border-radius: 6px; font-size: 14px; z-index: 50; }
.toast[hidden] { display: none; }

#splash { position: fixed; inset: 0; background: var(--green); z-index: 100; display: flex; flex-direction: column; transition: opacity .5s; }
#splash.hide { opacity: 0; pointer-events: none; }
.splash-img { width: 100%; height: 62%; object-fit: cover; object-position: top; animation: fade 1s both; }
.splash-text { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cream); animation: fade 1.2s both; }
.splash-brand { font-size: 34px; font-weight: 700; }
.splash-name { font-size: 18px; margin-top: 4px; }
.splash-tag { color: var(--gold); font-weight: 600; margin-top: 10px; font-size: 14px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
