/* oddlyplay · assets/weekly.css
   The pieces of Pebble 2 that This week, Made by players, For streamers and the home page's "Come back for" row share: the three card week row, the featured pick,
   the stream frame, the timeline sketch and the fingerprint box. Tokens, buttons, tiles, chips and sheets all come from pebble.css, which loads first. Plain
   CSS, no build step, and every class here is new, so nothing on another page can change. */

.tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-art > svg { display: block; width: 100%; height: 100%; }

/* ---------- the week row: one big card and two beside it, one column on a phone ---------- */
.week { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s5); }
.week.even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .week, .week.even { grid-template-columns: 1fr; } }
.weekcard { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.weekcard .tile-art { aspect-ratio: 4 / 3; border-radius: var(--r-4); }
.weekcard .kicker { font-size: var(--t-small); color: var(--ink-3); margin: 0; }
.weekcard h2, .weekcard h3 { font-size: var(--t-h3); margin: 0; }
.weekcard p { margin: 0; color: var(--ink-2); }
.weekcard p.kicker, .weekcard p.meta { color: var(--ink-3); }
a.weekcard { text-decoration: none; color: inherit; }
a.weekcard:hover .tile-art { transform: translateY(-2px); box-shadow: var(--sunk), var(--shadow-2); }
a.weekcard:hover .tile-name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
/* the picture while the week's own picture is still being drawn: the frame already has its final size, so nothing moves when it arrives */
.tile-art.is-drawing { background: var(--well); }
.tile-art.is-drawing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 70%); background-size: 220% 100%; animation: wk-sheen calc(1600ms / max(var(--motion), 0.001)) linear infinite; }
:root.cf-still .tile-art.is-drawing::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .tile-art.is-drawing::after { animation: none; } }
@keyframes wk-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.together { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s4) var(--s5); border-radius: var(--r-3); background: var(--surface); box-shadow: var(--shadow-1); }
.together b { font: 760 1.25rem/1.2 var(--font-display); }
.together span { color: var(--ink-2); }

.opened { display: inline-flex; align-items: center; gap: var(--s2); }
.opened::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- a featured pick: a picture and the words beside it ---------- */
.pick-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--s6), 5vw, var(--s8)); align-items: center; }
.pick-feature .tile-art { aspect-ratio: 4 / 3; border-radius: var(--r-4); }
@media (max-width: 860px) { .pick-feature { grid-template-columns: 1fr; } }

/* ---------- the shelf of shared tracks and spots ---------- */
.byline { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-small); color: var(--ink-3); margin: var(--s1) 0 0; }
.share-btn { background: none; border: 0; padding: 10px 0; min-height: var(--hit); font: 400 var(--t-micro)/1 var(--font-text); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; cursor: pointer; position: relative; z-index: 2; }
.share-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.tile .cover { z-index: 1; }

/* ---------- the stream frame: the picture, with the layout laid over it as plain text ---------- */
.streamshot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-4); overflow: hidden; box-shadow: var(--shadow-3); background: #15181F; }
.streamshot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.streamshot .lb { position: absolute; right: 3%; top: 5%; width: 26%; padding: 10px 12px; border-radius: 12px; background: rgba(21, 24, 31, 0.72); color: #F1F2EE; font-size: clamp(10px, 1.1vw, 14px); list-style: none; margin: 0; counter-reset: r; }
.streamshot .lb li { counter-increment: r; display: flex; gap: 8px; padding: 3px 0; }
.streamshot .lb li::before { content: counter(r); width: 1.2em; opacity: 0.7; }
.streamshot .tag { position: absolute; padding: 3px 8px; border-radius: 999px; background: rgba(21, 24, 31, 0.72); color: #F1F2EE; font: 700 clamp(9px, 1vw, 13px)/1 var(--font-text); transform: translate(-50%, -100%); white-space: nowrap; }
.streamshot .shot-foot { position: absolute; left: 3%; bottom: 5%; padding: 6px 10px; border-radius: 10px; background: rgba(21, 24, 31, 0.6); color: #F1F2EE; font-size: clamp(9px, 1vw, 13px); }
.streamshot .mark { position: absolute; right: 3%; bottom: 5%; padding: 3px 8px; border-radius: 999px; background: rgba(21, 24, 31, 0.55); color: #F1F2EE; font: 700 11px/1 var(--font-text); }
@media (max-width: 560px) { .streamshot .lb, .streamshot .mark { display: none; } }   /* on a phone the picture is too small for the list not to cover a marble */

/* ---------- the timeline sketch, and the fingerprint box ---------- */
.timeline { position: relative; height: 54px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: var(--sunk); margin: var(--s4) 0 var(--s7); }
.timeline .sel { position: absolute; top: 6px; bottom: 6px; left: 68%; width: 24%; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.timeline .mk { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink-3); }
.timeline .mk span { position: absolute; top: 100%; left: 0; transform: translateX(-50%); margin-top: 4px; font-size: var(--t-micro); color: var(--ink-3); white-space: nowrap; }
.timeline .slow { position: absolute; top: 6px; bottom: 6px; left: 86%; width: 6%; border-radius: 6px; background: repeating-linear-gradient(45deg, rgba(21, 24, 31, 0.18) 0 4px, transparent 4px 8px); }
@media (max-width: 560px) { .timeline .mk span { font-size: 0.6875rem; } .timeline .mk.hide-sm span { display: none; } }
.fair { display: grid; gap: var(--s2); padding: var(--s5); border-radius: var(--r-3); background: var(--surface-2); box-shadow: var(--sunk); font-size: var(--t-small); }
.fair code { word-break: break-all; font-size: 1.05em; }
.names-input { width: 100%; min-height: 120px; padding: var(--s3); border-radius: var(--r-2); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 400 var(--t-small)/1.5 var(--font-text); resize: vertical; }
.soon { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); border: 1px dashed var(--line-strong); color: var(--ink-2); font: 700 var(--t-micro)/1 var(--font-text); vertical-align: middle; }
.ticklist { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.ticklist li { position: relative; padding-left: 22px; }
.ticklist li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.ticklist.later li::before { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.names-note { margin: var(--s3) 0 0; }
.live-line { min-height: 1.4em; margin: var(--s2) 0 0; color: var(--ink-2); font-size: var(--t-small); }
