/* ---------- section summaries (site-wide): sit on the heading's baseline, in the reading serif, tied by a rule ---------- */
.sec .sec-head { align-items: end; }
.sec .sec-sum { align-self: end; position: relative; margin: 0; padding: 4px 0 6px 22px; font: 400 1.16rem/1.6 var(--serif-text); color: var(--ink-2); max-width: 58ch; border-left: 3px solid var(--pine-soft); }
.sec .sec-sum::first-line { color: var(--ink); }
.band.warm .sec .sec-sum, .band.warm .sec-sum { border-left-color: #ecdcb8; }
@media (max-width: 900px) { .sec .sec-sum { padding-left: 16px; font-size: 1.05rem; } }

/* ---------- site logo ---------- */
.brand-logo img { display: block; height: 48px; width: auto; }
/* fit the header row inside the content width with the bigger logo */
.top-in { gap: 16px; }
.top-in .nav { gap: 0; }
.top-in .nav a { padding: 8px 11px; }
@media (max-width: 640px) { .brand-logo img { height: 30px; } }

/* ---------- live feed items (design pass) ---------- */
.ar-feed { position: relative; gap: 8px !important; padding-bottom: 10px !important; }
.ar-feed::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--line-2); border-radius: 2px; }
.ar-feed::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; height: 2px; width: 0; background: var(--pine-2); border-radius: 2px; }
.ar-feed.tick::before { animation: arCount 4s linear both; }
@keyframes arCount { from { width: 0; } to { width: 100%; } }
.ar-feed li { grid-template-columns: 40px minmax(0, 1fr) auto !important; gap: 12px !important; align-items: center !important; padding: 10px 12px !important; border: 1px solid var(--line-2) !important; border-radius: 12px; background: #fff; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.ar-feed li:hover { border-color: var(--pine-soft) !important; box-shadow: var(--sh); transform: translateX(2px); }
.ar-fa { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pine-wash); border: 1.5px solid var(--pine-soft); }
.ar-fa .glyph { border-radius: 3px; }
.ar-fa-o { color: var(--ink); }
.ar-fa-badge { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--tc, var(--pine)); box-shadow: 0 0 0 2px #fff; }
.ar-feed li.t-pine .ar-fa-badge { background: var(--pine); }
.ar-feed li.t-brass .ar-fa-badge { background: var(--brass); }
.ar-feed li.t-blue .ar-fa-badge { background: #3f6f8f; }
.ar-feed li.t-red .ar-fa-badge { background: var(--stop); }
.ar-feed li.t-ink .ar-fa-badge { background: var(--ink); }
.ar-fb { display: grid; gap: 2px; min-width: 0; }
.ar-fl { margin: 0; font-size: 0.82rem; line-height: 1.3; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-fl b { color: var(--ink); font-weight: 700; }
.ar-fq { margin: 0; font: 600 0.92rem/1.3 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-fr { display: grid; justify-items: end; gap: 4px; }
.ar-fr time { font-size: 0.7rem; color: var(--faint); white-space: nowrap; }
.ar-fpts { padding: 3px 8px; border-radius: 999px; font: 700 0.7rem/1 var(--sans); color: #fff; background: var(--brass); box-shadow: 0 2px 0 var(--brass-ink); }

/* ---------- live feed rotation ---------- */
/* the newest line arrives from below with a small bounce and a pine flash; its face pops and its points shine */
.ar-feed li.new { animation: arDrop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both, arFlash 1.6s ease-out both; }
.ar-feed li.new .ar-fa { animation: arPop 0.6s 0.15s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.ar-feed li.new .ar-fpts { animation: arPts 0.8s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.ar-feed li.out { animation: arLeave 0.35s ease-in both; }
@keyframes arDrop { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes arFlash { 0% { background: var(--pine-wash); border-color: var(--pine-2); } 100% { background: #fff; border-color: var(--line-2); } }
@keyframes arPop { 0% { transform: scale(0.4) rotate(-20deg); } 100% { transform: none; } }
@keyframes arPts { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes arLeave { to { opacity: 0; transform: translateY(-16px) scale(0.97); } }
/* the other lines drift gently so the panel never sits fully still */
.ar-feed li:not(.new):not(.out) .ar-fa { animation: arFloat 5s ease-in-out infinite; }
.ar-feed li:nth-child(2) .ar-fa { animation-delay: 1.2s; }
.ar-feed li:nth-child(3) .ar-fa { animation-delay: 2.4s; }
@keyframes arFloat { 0%, 100% { transform: none; } 50% { transform: translateY(-2px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .ar-feed li, .ar-feed li .ar-fa, .ar-feed li .ar-fpts, .ar-feed.tick::before { animation: none !important; } }

/* ---------- points as coins ---------- */
/* a struck coin drawn in SVG: dark edge below, face, milled rim, raised ring, recessed field, a thin highlight */
.coin { flex: none; display: inline-block; line-height: 0; filter: drop-shadow(0 4px 8px rgba(116, 83, 15, 0.22)); transition: transform 0.35s var(--ease); }
.coin svg { display: block; overflow: visible; }
.cn-edge { fill: #7e5a12; }
.cn-face { fill: #b8862a; }
.cn-tick { stroke: #8f6718; stroke-width: 1.4; }
.cn-ring { fill: none; stroke: #e0b65e; stroke-width: 2.2; }
.cn-inner { fill: #a97b1f; }
.cn-shine { fill: none; stroke: rgba(255, 240, 200, 0.55); stroke-width: 2.4; stroke-linecap: round; }
.cn-num { font-family: var(--serif); font-weight: 700; fill: #fff8e6; }
.cn-pts { font: 700 9px var(--sans); letter-spacing: 1.6px; fill: #f3dca8; }
.ar-bty:hover .coin, .ar-prize:hover .coin { transform: rotate(-10deg) scale(1.05); }

/* the hero points block */
.ar-active { display: grid; justify-items: center; gap: 5px; padding: 10px 12px; text-align: center; color: var(--ink); background: #fff; border: 1px solid #ecdcb8; border-radius: 12px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.ar-active:hover { text-decoration: none; border-color: var(--pine-2); box-shadow: var(--sh); }
.ar-active-faces { display: flex; padding-left: 6px; }
.ar-active-faces > span { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; border-radius: 50%; background: #fff; border: 1.5px solid var(--pine-2); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(20, 40, 59, 0.12); }
.ar-active-faces > span .glyph { border-radius: 3px; }
.ar-active-faces > span.on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #2fbf7a; box-shadow: 0 0 0 2px #fff; }
/* make it feel live: the online dot breathes, faces take turns lifting */
.ar-active-faces > span.on::after { animation: arOnline 1.6s ease-in-out infinite; }
@keyframes arOnline { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(47, 191, 122, 0.5); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(47, 191, 122, 0); } }
.ar-active-faces > span { animation: arBob 6s ease-in-out infinite; }
.ar-active-faces > span:nth-child(2) { animation-delay: 1.5s; }
.ar-active-faces > span:nth-child(3) { animation-delay: 3s; }
.ar-active-faces > span:nth-child(4) { animation-delay: 4.5s; }
@keyframes arBob { 0%, 20%, 100% { transform: translateY(0); z-index: 0; } 8% { transform: translateY(-4px) rotate(-6deg); z-index: 1; } }
@media (prefers-reduced-motion: reduce) { .ar-active-faces > span, .ar-active-faces > span.on::after { animation: none; } }
.ar-active b {font: 700 0.78rem/1.1 var(--sans) !important; color: var(--pine-deep) !important; letter-spacing: 0 !important; }
.ar-active small { font-size: 0.68rem; color: var(--sub); white-space: nowrap; }
.ar-livebox .ar-score.big { grid-template-columns: auto minmax(0, 1fr) auto !important; }
.ar-livebox .ar-score.big { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 22px 24px; background: #fdf9f0; border-bottom: 1px solid #ecdcb8; }
.ar-livebox .ar-score.big > div { display: grid; gap: 6px; }
.ar-livebox .ar-score.big b { display: flex; align-items: baseline; gap: 6px; font: 700 3.1rem/1 var(--serif); color: var(--brass-ink); letter-spacing: -0.02em; }
.ar-livebox .ar-score.big b small { font: 700 0.95rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.ar-livebox .ar-score.big > div > span { font-size: 0.86rem; color: var(--ink-2); }

/* ---------- today's challenge ---------- */
.ar-daily { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); margin-top: clamp(-34px, -3vw, -20px); position: relative; z-index: 2; background: #fff; border: 2px solid var(--brass); border-radius: 18px; box-shadow: 0 2px 0 #e6d6b0, var(--sh-2); overflow: hidden; padding: 0; }
.ar-daily-main { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); }
.ar-daily-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ar-daily-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font: 700 0.76rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--brass); }
.ar-daily-clock { font-size: 0.82rem; color: var(--sub); }
.ar-daily-clock b { color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.ar-daily h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; }
.ar-daily h2 a { color: var(--ink); }
.ar-daily h2 a:hover { color: var(--pine); text-decoration: none; }
.ar-daily-do { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.ar-daily-do b { color: var(--ink); }
.ar-daily-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.ar-daily-note { font-size: 0.78rem; color: var(--sub); }
.ar-daily-side { display: grid; gap: 12px; align-content: center; padding: clamp(22px, 3vw, 30px); background: #fdf9f0; border-left: 1px solid #ecdcb8; }
.ar-prize-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ar-prize-total { font-size: 0.8rem; color: var(--ink-2); }
.ar-prize-total b { font: 700 1.1rem/1 var(--serif); color: var(--brass-ink); }
.ar-prize { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid #ecdcb8; border-radius: 12px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.ar-prize:hover { border-color: var(--brass); box-shadow: var(--sh); }
.ar-prize.main { padding: 18px; border: 1.5px solid var(--brass); box-shadow: 0 2px 0 #ecdcb8; }
.ar-prize > div { display: grid; gap: 3px; min-width: 0; }
.ar-prize small { font: 700 0.62rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); }
.ar-prize b { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); }
.ar-prize.main b { font-size: 1.35rem; }
.ar-prize span { font-size: 0.82rem; line-height: 1.4; color: var(--sub); }
.ar-daily-stat { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 0.82rem; color: var(--ink-2); }
.ar-daily-stat b { color: var(--pine-deep); }
.ar-daily-stat .ac-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pine-2); }
.ar-first { display: inline-grid; place-items: center; padding: 4px 8px; border-radius: 999px; font: 700 0.68rem/1 var(--sans); color: #fff; background: var(--pine); }
@media (max-width: 860px) { .ar-daily { grid-template-columns: minmax(0, 1fr); } .ar-daily-side { border-left: 0; border-top: 1px solid #ecdcb8; } }

/* ---------- what points earn ---------- */
.ar-rewards { display: grid; gap: 22px; margin-top: clamp(56px, 6vw, 88px); padding: clamp(26px, 3vw, 40px); background: #fdf9f0; border: 1px solid #ecdcb8; border-radius: 18px; }
.ar-rw-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ar-rw-head p { margin: 6px 0 0; color: var(--ink-2); }
.ar-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; }
.ar-levels::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 3px; background: #ecdcb8; border-radius: 2px; }
.ar-levels li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ar-lv-coin { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font: 700 1rem/1 var(--serif); color: #fff; background: var(--brass); box-shadow: inset 0 0 0 3px #c99a3c, 0 3px 0 var(--brass-ink); }
.ar-levels li:nth-child(1) .ar-lv-coin { width: 50px; height: 50px; margin-top: 4px; }
.ar-levels li:nth-child(4) .ar-lv-coin { width: 66px; height: 66px; margin-top: -4px; }
.ar-levels b { font: 600 1rem/1.2 var(--serif); }
.ar-levels small { font-size: 0.74rem; color: var(--sub); }
.ar-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ar-perks > div { display: grid; gap: 6px; padding: 16px 18px; background: #fff; border: 1px solid #ecdcb8; border-radius: 10px; }
.ar-perk-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--brass-ink); background: var(--brass-soft); }
.ar-perks b { font: 600 1rem/1.25 var(--serif); }
.ar-perks p { margin: 0; font-size: 0.84rem; color: var(--ink-2); }
@media (max-width: 760px) { .ar-levels, .ar-perks { grid-template-columns: 1fr 1fr; } .ar-levels::before { display: none; } }

/* ---------- bigger titles ---------- */
.ar-bties .ar-bty p { font-size: 1.28rem; line-height: 1.32; letter-spacing: -0.005em; }
.ar-next b { font-size: 1.4rem; line-height: 1.25; }
.ar-step b { font-size: 1.15rem; }
.ar-bties .ar-bty { padding: 20px 20px 16px; gap: 14px; }
/* on a phone the points line takes the row, and who is active drops beneath it */
@media (max-width: 520px) {
  .ar-livebox .ar-score.big { grid-template-columns: auto minmax(0, 1fr) !important; gap: 14px; padding: 18px; }
  .ar-livebox .ar-score.big b { font-size: 2.3rem; }
  .ar-livebox .ar-score.big .ar-active { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
}
