/* Our Year (js/ouryear.js): the recap screen, its story and the January card. Storybook colours. */

.oy-view { background: var(--bg); color: var(--fg); z-index: 35; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.oy-head .m-title { padding-bottom: 2px; }
.oy-years { padding-top: 4px; }
.oy-body { padding: 12px 14px calc(var(--safe-b) + 32px); max-width: 640px; margin: 0 auto; }

.oy-hero { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 52vh; border: 0; padding: 0; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #ffcf24, #ff7e5f); color: #fff; text-align: left; }
.oy-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oy-hero-txt { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 46px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.oy-hero-txt b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.oy-hero-txt span { font-size: 14px; opacity: .92; }
.oy-play { display: inline-flex !important; align-items: center; gap: 6px; align-self: flex-start; margin-top: 10px; background: #fff; color: #111; border-radius: 999px; padding: 8px 14px; font-weight: 800; opacity: 1 !important; }
.oy-play svg { width: 14px; height: 14px; }

.oy-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.oy-num { background: var(--chip); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; min-width: 0; }
.oy-num b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.oy-num span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.oy-strip { margin-top: 0; }
.oy-list { display: grid; gap: 6px; }
.oy-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--chip); color: var(--fg); border-radius: 16px; padding: 8px 12px 8px 8px; font: inherit; }
.oy-row-pic { flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--tile); display: grid; place-items: center; font-size: 24px; }
.oy-row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oy-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oy-row-txt b { font-size: 15px; overflow-wrap: anywhere; }
.oy-row-txt span { font-size: 13px; color: var(--muted); }
.oy-firstlast { display: flex; gap: 8px; }
.oy-firstlast .mini { width: 50%; height: auto; aspect-ratio: 4 / 3; max-width: 220px; }
.oy-mini span, .oy-firstlast .mini span { text-align: left; padding-left: 8px; }

.oy-words .section-label { display: flex; justify-content: space-between; }
.oy-saved { text-transform: none; letter-spacing: 0; font-weight: 600; }
.oy-title-in, .oy-words-in { width: 100%; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); padding: 10px 14px; font: inherit; font-size: 16px; }
.oy-title-in { height: 48px; font-weight: 700; margin-bottom: 8px; }
.oy-words-in { resize: vertical; line-height: 1.45; }
.oy-actions { margin-top: 18px; }
.oy-chapters-field { margin: 8px 0; }
.oy-chapters { width: 100%; height: 44px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); padding: 0 12px; font: inherit; }
.oy-note { margin-top: 10px; text-align: center; }

/* choosing what's in it (a sheet) */
.oy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; margin-bottom: 8px; }
.oy-pick { width: auto; height: auto; aspect-ratio: 3 / 4; position: relative; }
.oy-pick[aria-pressed="false"] img { opacity: .35; filter: grayscale(1); }
.oy-tick { position: absolute !important; inset: 5px 5px auto auto !important; width: 22px; height: 22px; padding: 3px !important; border-radius: 50%; background: rgba(0,0,0,.45) !important; color: transparent; border: 2px solid #fff; }
.oy-tick svg { width: 100%; height: 100%; display: block; }
.oy-pick[aria-pressed="true"] .oy-tick { background: var(--accent) !important; color: #111; border-color: var(--accent); }
.oy-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.oy-check { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--chip); color: var(--fg); border-radius: 999px; padding: 7px 12px 7px 8px; font: inherit; font-size: 14px; }
.oy-box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; flex: none; }
.oy-box svg { width: 12px; height: 12px; }
.oy-check[aria-pressed="true"] .oy-box { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.oy-check[aria-pressed="false"] { opacity: .6; text-decoration: line-through; }

/* the story */
.oy-stage { position: absolute; inset: 0; display: grid; }
.oy-card { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.oy-pic { grid-area: 1 / 1; max-width: 100%; max-height: 100%; object-fit: contain; }
.oy-card.cover .oy-pic, .oy-card.moment .oy-pic, .oy-card.place .oy-pic { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.oy-over { grid-area: 1 / 1; z-index: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.oy-over.low { align-self: end; padding-bottom: calc(var(--safe-b) + 48px); }
.oy-kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; opacity: .9; }
.oy-big { font-size: clamp(72px, 26vw, 140px); font-weight: 900; letter-spacing: -.04em; line-height: .95; }
.oy-mid { font-size: clamp(24px, 7.5vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; max-width: 18ch; }
.oy-line { font-size: 16px; font-weight: 600; opacity: .95; }
.oy-emoji { font-size: 46px; }
.oy-card.numbers, .oy-card.words, .oy-card.end, .oy-card.moment.capsule { background: radial-gradient(120% 90% at 20% 0%, #ff9f6e 0%, #e2457a 45%, #2a1650 100%); align-content: center; gap: 16px; padding: 70px 22px calc(var(--safe-b) + 40px); }
.oy-card.numbers .oy-numbers { width: 100%; max-width: 420px; grid-template-columns: 1fr 1fr; gap: 10px; }
.oy-card.numbers .oy-num { background: rgba(255,255,255,.14); }
.oy-card.numbers .oy-num b { font-size: 34px; color: #fff; }
.oy-card.numbers .oy-num span { color: rgba(255,255,255,.85); font-size: 13.5px; }
.oy-quote { font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(20px, 6vw, 28px); line-height: 1.4; max-width: 30ch; text-align: center; margin: 0; white-space: pre-wrap; }
.oy-card.end { text-align: center; justify-items: center; }
.oy-card.end .btn { max-width: 340px; }
.oy-card.end .btn.secondary { background: rgba(255,255,255,.16); color: #fff; }

/* January: "Your 2026 is ready" */
.oy-jan { position: relative; padding: 14px 14px 0; }
.oy-jan-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 18px; padding: 10px 44px 10px 10px; text-align: left;
  background: linear-gradient(135deg, #ff9f6e, #e2457a); color: #fff; }
.oy-jan-card img { width: 64px; height: 80px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,.25); flex: none; }
.oy-jan-txt { display: flex; flex-direction: column; min-width: 0; }
.oy-jan-txt b { font-size: 18px; font-weight: 800; }
.oy-jan-txt span { font-size: 13px; opacity: .92; }
.oy-jan-x { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 7px; background: rgba(0,0,0,.2); color: #fff; }
.oy-jan-x svg { width: 100%; height: 100%; display: block; }
