/* Annual diary */
#retrospective-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--accent); border-radius: 10px; background: #141020dc; color: var(--accent2); font: 700 12px 'Syne', sans-serif; cursor: pointer; white-space: nowrap; }
#retrospective-btn svg { width: 20px; height: 20px; }
#retrospective-btn:hover { background: var(--accent-glow); color: var(--text); }
#retrospective-btn:disabled { opacity: .45; cursor: wait; }
.recap-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; border: 0; background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.recap-dialog::backdrop { background: #08080dec; }
.recap-dialog :focus-visible { outline: 2px solid var(--accent2); outline-offset: 5px; }
.recap-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(24px, calc((100% - 1140px) / 2)); background: #101017f2; backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.recap-brand, .recap-actions { display: flex; align-items: center; gap: 12px; }
.recap-brand { font: 700 16px 'Syne', sans-serif; }
.recap-brand svg { width: 23px; height: 23px; color: var(--gold); }
#recap-save { display: inline-flex; align-items: center; gap: 7px; }
#recap-save svg { width: 16px; height: 16px; }
.recap-year-label { font-size: 11px; color: var(--text2); }
#recap-year { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); border-radius: 8px; padding: 9px 28px 9px 12px; font: 500 14px 'DM Mono', monospace; cursor: pointer; }
.recap-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.recap-close svg { width: 18px; height: 18px; }
.recap-close:hover { background: var(--surface2); }
.recap-content { max-width: 1140px; margin: auto; padding: 0 24px; }
.recap-hero { min-height: 475px; padding: 64px 0 42px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; position: relative; }
.recap-hero::before { content: ''; pointer-events: none; position: absolute; inset: 0 -24px; background: radial-gradient(ellipse at 80% 45%, var(--accent-glow), transparent 65%); }
.recap-hero-copy { position: relative; z-index: 1; min-width: 0; }
.recap-eyebrow { color: var(--accent2); text-transform: uppercase; font-size: 10px; letter-spacing: 2.2px; line-height: 1.6; margin-bottom: 14px; }
.recap-dedication { color: var(--text2); margin: 24px 0 10px; font-size: 14px; overflow-wrap: anywhere; }
.recap-hero h1 { font: 500 clamp(22px, 3vw, 36px)/1.15 'Syne', sans-serif; letter-spacing: -1px; }
.recap-hero h1 strong { display: block; font-size: clamp(64px, 10vw, 134px); font-weight: 800; line-height: 1; letter-spacing: -6px; }
.recap-hero h1 strong span { color: var(--gold); }
.recap-intro { max-width: 410px; margin-top: 16px; font-size: 12px; color: #aaa6bc; line-height: 1.9; }
.recap-edition { display: inline-block; margin-top: 24px; padding: 7px 11px; border: 1px solid var(--border2); border-radius: 20px; color: var(--text2); font-size: 10px; }
.recap-cover { position: relative; overflow: hidden; background: linear-gradient(145deg, #423459, #191622); aspect-ratio: 3 / 4; border: 1px solid #ffffff16; border-radius: 12px; }
.recap-cover > span { position: absolute; inset: 0; display: grid; place-items: center; color: #c4b1e4; font: 800 64px 'Syne', sans-serif; }
.recap-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recap-cover img[hidden] { display: none; }
.recap-cover-fan { min-width: 0; height: 340px; display: flex; align-items: center; justify-content: center; position: relative; padding: 30px; }
.recap-cover-fan .recap-cover { flex: 0 0 44%; max-width: 205px; box-shadow: 0 20px 50px #0007; transform: rotate(-12deg) translateY(12px); }
.recap-cover-fan .recap-cover + .recap-cover { margin-left: -19%; transform: rotate(0deg) translateY(-10px); z-index: 2; }
.recap-cover-fan .recap-cover:nth-child(3) { transform: rotate(12deg) translateY(16px); z-index: 1; }
.recap-orbit { position: absolute; right: 4%; bottom: 4%; color: var(--gold); z-index: 3; filter: drop-shadow(0 4px 12px #000); }
.recap-orbit svg { width: 48px; height: 48px; }
.recap-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border2); border-radius: 16px; overflow: hidden; background: linear-gradient(120deg, #211b31, var(--surface)); }
.recap-metric { padding: 25px 28px; display: flex; flex-direction: column; position: relative; gap: 9px; }
.recap-metric + .recap-metric { border-left: 1px solid var(--border2); }
.recap-metric strong { font: 700 48px/1 'Syne', sans-serif; letter-spacing: -2px; }
.recap-metric > span:last-child { font-size: 11px; color: #b2adc3; }
.recap-symbol { position: absolute; top: 24px; right: 22px; color: var(--accent2); }
.recap-symbol svg { width: 22px; height: 22px; }
.recap-metric:nth-child(3) strong, .recap-metric:nth-child(3) .recap-symbol { color: var(--gold); }
.recap-metric.recap-time-metric strong { font: 500 clamp(20px, 2.1vw, 28px)/1.3 'DM Mono', monospace; letter-spacing: -1px; overflow-wrap: anywhere; margin-top: 14px; }
.recap-time-metric .recap-symbol { top: 10px; font-size: 17px; }
.recap-hours-note { margin-top: 3px; }
.recap-caption { font-size: 10px; color: var(--text2); line-height: 1.9; margin-top: 14px; }
.recap-section { margin-top: 64px; }
.recap-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.recap-section-heading h2 { font: 700 27px/1.2 'Syne', sans-serif; letter-spacing: -.8px; }
.recap-section-heading .recap-eyebrow { margin-bottom: 8px; }
.recap-section-heading > p { max-width: 350px; color: var(--text2); font-size: 11px; line-height: 1.7; }
.recap-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recap-highlight { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.recap-highlight .recap-cover { width: 100%; aspect-ratio: 3 / 4; border-radius: 0; border: 0; }
.recap-highlight > div:last-child { position: relative; padding: 20px; }
.recap-highlight h3 { font: 700 18px/1.4 'Syne', sans-serif; overflow-wrap: anywhere; margin: 7px 0 9px; }
.recap-tag { padding-right: 35px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.recap-rank { position: absolute; right: 18px; top: 14px; font: 800 27px 'Syne', sans-serif; color: #8888aa55; }
.recap-muted { color: var(--text2); font-size: 11px; line-height: 1.7; }
.recap-rating { font: 700 27px 'Syne', sans-serif; margin-top: 18px; color: var(--accent2); }
.recap-rating small { font: 11px 'DM Mono', monospace; color: var(--text2); }
.recap-rhythm { padding: 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.recap-rhythm-chart-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.recap-rhythm-chart {
  display: grid;
  grid-template-columns: minmax(130px, auto) repeat(12, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  min-width: 660px;
}
.recap-rhythm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  padding-right: 12px;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
.recap-rhythm-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.recap-rhythm-bullet-games { background: var(--accent2); }
.recap-rhythm-bullet-hours { background: var(--gold); }
.recap-rhythm-val {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.recap-rhythm-val-games b {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 500;
  font-family: 'DM Mono', monospace;
}
.recap-rhythm-val-hours .recap-month-hours {
  color: var(--gold);
  font-size: 10px;
  font-weight: 400;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}
.recap-rhythm-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--border);
  margin: 8px 0 16px;
}
.recap-rhythm-divider.recap-rhythm-divider-row { margin: 0; }
.recap-rhythm-peak {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 14px 12px;
  margin-right: 12px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: radial-gradient(circle at 0% 0%, #f0c06014, transparent 60%), linear-gradient(160deg, #1d1830, var(--surface));
  position: sticky;
  left: 0;
  z-index: 1;
}
.recap-rhythm-peak-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text2);
}
.recap-rhythm-peak-label svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.recap-rhythm-peak-month {
  font: 800 34px/1 'Syne', sans-serif;
  letter-spacing: -1px;
  text-transform: capitalize;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--accent2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.recap-rhythm-peak-hours { color: var(--gold); font-size: 12px; }
.recap-rhythm-peak-games { color: var(--accent2); font-size: 9px; }
.recap-rhythm-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 10px; }
.recap-rhythm-dots i { height: 5px; border-radius: 2px; background: var(--border); }
.recap-rhythm-dots i.on { background: var(--accent); }
.recap-rhythm-dots i.peak { background: var(--gold); box-shadow: 0 0 6px #f0c06099; }
.recap-rhythm-active { font-size: 9px; color: var(--text3); margin-top: 2px; }
.recap-month-peak > span { color: var(--gold); }
.recap-month-peak .recap-month-track { background: #f0c0600d; box-shadow: inset 0 0 0 1px #f0c06033; }
.recap-month {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  color: var(--text2);
}
.recap-month-track {
  height: 105px;
  width: 100%;
  max-width: 40px;
  display: flex;
  align-items: end;
  background: #ffffff04;
  border-radius: 6px;
  overflow: hidden;
  gap: 4px;
  padding: 0 4px;
  box-sizing: border-box;
}
.recap-month-track span {
  width: calc(50% - 2px);
  background: linear-gradient(to top, var(--accent), var(--accent2));
  border-radius: 4px;
}
.recap-month-track .recap-hours-bar {
  background: linear-gradient(to top, #bc8a37, var(--gold));
}
.recap-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 10px; color: var(--text2); margin-bottom: 18px; }
.recap-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent2); margin-right: 7px; }
.recap-legend span + span::before { background: var(--gold); }
.recap-album-card time { display: block; margin-top: 12px; color: var(--accent2); font-size: 10px; }
.recap-preferences { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.recap-panel { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 28px; }
.recap-panel h3 { font: 700 18px 'Syne', sans-serif; margin-bottom: 25px; }
.recap-breakdown + .recap-breakdown { margin-top: 18px; }
.recap-breakdown > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11px; margin-bottom: 8px; }
.recap-breakdown span { overflow-wrap: anywhere; }
.recap-breakdown b { color: var(--text2); font-weight: 400; }
.recap-track { height: 5px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.recap-track span { display: block; height: 100%; background: var(--accent2); border-radius: 5px; }
.recap-panel + .recap-panel .recap-track span { background: var(--gold); }
.recap-album { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 15px; }
.recap-album-card { min-width: 0; }
.recap-album-card h3 { margin: 10px 0 6px; font: 600 12px/1.5 'Syne', sans-serif; overflow-wrap: anywhere; }
.recap-album-card p, .recap-album-card small { font-size: 9px; line-height: 1.6; color: var(--text2); }
.recap-album-card small { color: var(--gold); }
.recap-method { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 24px; color: var(--text2); font-size: 11px; line-height: 1.9; }
.recap-method summary { cursor: pointer; color: var(--text); }
.recap-method p { max-width: 900px; margin-top: 14px; }
.recap-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0; color: var(--text2); font-size: 10px; }
.recap-footer > span:first-child { color: var(--text); font: 800 15px 'Syne', sans-serif; letter-spacing: 2px; }
.recap-footer > span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.recap-footer-icon { width: 15px; height: 15px; color: var(--gold); }
.recap-empty { padding: 100px 20px; text-align: center; max-width: 650px; margin: auto; }
.recap-empty > svg { width: 68px; height: 68px; color: var(--gold); margin-bottom: 30px; }
.recap-empty h1 { font: 700 36px 'Syne', sans-serif; margin-bottom: 20px; }
.recap-empty > p:last-child { color: var(--text2); font-size: 13px; line-height: 1.9; }
@media (max-width: 900px) {
  .topbar { grid-template-areas: 'menu comm . recap avatar' 'edit . . notif logout'; }
  #retrospective-btn { grid-area: recap; justify-self: end; flex-direction: column; gap: 2px; padding: 5px 7px; font-size: 8px; border-radius: 8px; }
  #retrospective-btn svg { width: 20px; height: 20px; }
  .recap-hero { min-height: 400px; padding-top: 40px; }
  .recap-metric { padding: 23px 18px; }
  .recap-symbol { right: 12px; font-size: 17px; }
  .recap-metric strong { font-size: 40px; }
  .recap-highlights { gap: 10px; }
  .recap-highlight > div:last-child { padding: 15px; }
  .recap-album { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  #retrospective-btn { padding: 4px 6px; font-size: 7.5px; gap: 2px; }
  #retrospective-btn svg { width: 17px; height: 17px; }
  .recap-toolbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .recap-brand { font-size: 14px; }
  .recap-actions { gap: 8px; width: 100%; }
  #recap-save { margin-left: auto; font-size: 11px; }
  .recap-content { padding: 0 20px; }
  .recap-hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; gap: 0; }
  .recap-hero::before { inset: 0 -20px; }
  .recap-hero-copy { text-align: center; }
  .recap-hero h1 strong { font-size: clamp(64px, 21vw, 100px); letter-spacing: -4px; }
  .recap-dedication { margin-top: 18px; }
  .recap-intro { margin: 15px auto 0; max-width: 310px; }
  .recap-edition { margin-top: 16px; }
  .recap-cover-fan { height: 280px; max-width: 390px; width: 100%; margin: 5px auto 0; padding: 30px 35px; }
  .recap-cover-fan .recap-cover { max-height: 210px; }
  .recap-orbit { right: 9%; }
  .recap-orbit svg { width: 34px; height: 34px; }
  .recap-metrics { grid-template-columns: 1fr 1fr; }
  .recap-metric:nth-child(3) { border-left: 0; }
  .recap-metric:nth-child(n+3) { border-top: 1px solid var(--border2); }
  .recap-metric { padding: 23px; }
  .recap-symbol { right: 20px; }
  .recap-section { margin-top: 42px; }
  .recap-section-heading { flex-direction: column; align-items: start; gap: 12px; }
  .recap-section-heading h2 { font-size: 25px; }
  .recap-highlights { grid-template-columns: 1fr; gap: 12px; }
  .recap-highlight { display: grid; grid-template-columns: 105px 1fr; }
  .recap-highlight .recap-cover { height: 100%; min-height: 158px; aspect-ratio: auto; }
  .recap-highlight h3 { font-size: 17px; }
  .recap-rating { margin-top: 12px; font-size: 23px; }
  .recap-rhythm { padding: 22px 14px; }
  .recap-month-track { height: 80px; }
  .recap-preferences { grid-template-columns: 1fr; gap: 14px; }
  .recap-panel { padding: 24px; }
  .recap-album { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .recap-album .recap-cover { border-radius: 8px; }
  .recap-footer { flex-wrap: wrap; padding: 30px 0; }
  .recap-footer p { order: 3; width: 100%; }
}
