/* My tickets (my_tickets.md): header, tiles, ticket list, stats charts, stadiums. */

/* header */
.mt-head .page-lead { margin-top: var(--sp-2); }
.mt-owner { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.mt-owner__names { min-width: 0; }
.mt-owner__name { font-size: 26px; line-height: 1.3; overflow-wrap: anywhere; }
.mt-bio { margin-top: var(--sp-3); font-size: var(--fs-small); line-height: 1.7; }
.mt-tiles { margin-top: var(--sp-4); }
.mt-years { margin-top: var(--sp-4); }
.mt-active { margin-top: var(--sp-3); }
.mt-active .chip { text-decoration: none; }

/* avatar (also used by my page) */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.avatar--28 { width: 28px; height: 28px; font-size: 13px; }
.avatar--48 { width: 48px; height: 48px; font-size: 20px; }
.avatar--72 { width: 72px; height: 72px; font-size: 30px; }

/* ticket list */
.month-head { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: var(--ls-label); color: var(--muted); margin-top: var(--sp-2); }
.month-head:first-child { margin-top: 0; }
.mt-more { margin-top: var(--sp-2); }
.mt-more[aria-busy="true"] { opacity: .5; pointer-events: none; }

/* charts */
.chart-card { padding: var(--sp-4) var(--sp-4) var(--sp-3); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart__axis { stroke: var(--line); stroke-width: 1; }
.chart__bar--stadium { fill: var(--ink); }
.chart__bar--broadcast { fill: var(--muted); }
.chart__value { font-family: var(--font-display); font-weight: 700; font-size: 10px; fill: var(--ink); }
.chart__label { font-family: var(--font-mono); font-weight: 500; font-size: 9px; fill: var(--muted); }
.chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); font-size: 12px; color: var(--muted); }
.chart-legend--end { justify-content: flex-end; }
.legend { display: inline-block; width: 11px; height: 11px; border-radius: 2px; }
.legend + * { margin-right: 6px; }
.legend--stadium { background: var(--ink); }
.legend--broadcast { background: var(--muted); margin-left: var(--sp-2); }

/* watch calendar: one month, Sunday first. Mark under the date: stadium (any live match) = --ink, broadcast only = --muted */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: -4px -4px var(--sp-2); }
.cal__title { font-size: 17px; font-weight: 700; }
.cal__nav { background: transparent; }
.cal__nav--off { color: var(--line); }
.cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal__wd { padding-bottom: 4px; font-family: var(--font-mono); font-weight: 500; font-size: 10px; color: var(--muted); text-align: center; }
.cal__cell { padding: 1px; text-align: center; vertical-align: top; }
.cal__day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 5px 0 4px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cal__num { font-family: var(--font-display); font-size: 14px; line-height: 1.3; }
.cal__day--today .cal__num { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cal__mark { display: inline-flex; align-items: center; gap: 2px; height: 12px; }
.cal__dot { width: 7px; height: 7px; border-radius: 50%; }
.cal__day--stadium .cal__dot { background: var(--ink); }
.cal__day--broadcast .cal__dot { background: var(--muted); }
.cal__count { font-family: var(--font-display); font-weight: 700; font-size: 10px; line-height: 1; color: var(--muted); }
a.cal__day:hover { background: var(--surface-2); }
a.cal__day[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
a.cal__day[aria-pressed="true"] .cal__dot { background: var(--surface); }
a.cal__day[aria-pressed="true"] .cal__count { color: var(--surface); }
a.cal__day:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cal__matches { margin-top: var(--sp-4); }
.legend--dot { width: 8px; height: 8px; border-radius: 50%; }

/* supported teams */
.support-list[role="list"] { padding: 4px var(--sp-4); }
.support { display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; }
.support + .support { border-top: 1px solid var(--line); }
.support .team-bar { height: 40px; margin-top: 4px; }
.support__body { flex: 1; min-width: 0; }
.support__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
.support__name { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support__rate { flex: none; font-weight: 700; font-size: 15px; }
.support__line { font-size: 14px; line-height: 1.6; }

/* horizontal bars */
.hbars[role="list"] { padding: var(--sp-3) var(--sp-4); }
.hbar { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) 28px; align-items: center; gap: var(--sp-2); min-height: 32px; }
.hbar__name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__name a { text-decoration: none; }
.hbar__track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar__fill { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.hbar__count { text-align: right; font-weight: 700; font-size: 14px; }

.kv-list[role="list"] { padding: 4px var(--sp-4); }
.kv-list li { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.kv-list li + li { border-top: 1px solid var(--line); }
.kv-list .font-display { font-weight: 700; }
.tag__count { margin-left: 6px; font-family: var(--font-display); color: var(--muted); font-weight: 700; }

/* stadium conquest */
.conquest-list { display: grid; gap: 10px; }
.conquest { padding: 0; }
.conquest__summary { display: block; padding: var(--sp-4); cursor: pointer; list-style: none; }
.conquest__summary::-webkit-details-marker { display: none; }
.conquest__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
.conquest__name { font-weight: 700; }
.conquest__season { margin-left: var(--sp-2); }
.conquest__count { font-size: 15px; color: var(--muted); }
.conquest__count strong { font-size: 22px; color: var(--ink); }
.conquest__venues[role="list"] { padding: 0 var(--sp-4) var(--sp-4); display: grid; gap: 6px; }
.conquest__venue { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; font-weight: 700; }
.conquest__venue--todo { color: var(--muted); font-weight: 400; }
.conquest__dot { width: 16px; height: 16px; flex: none; border: 1.5px dashed var(--line); border-radius: 50%; }
.conquest__city { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }

/* visited venues */
.venue-list[role="list"] { padding: 4px var(--sp-4); }
.venue-list li + li { border-top: 1px solid var(--line); }
.venue-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; color: var(--ink); text-decoration: none; }
.venue-row__count { display: flex; align-items: baseline; justify-content: center; gap: 1px; width: 52px; height: 52px; padding-top: 12px; border: 1.5px dashed var(--line); border-radius: 50%; flex: none; font-weight: 700; font-size: 20px; line-height: 1; }
.venue-row__count span { font-family: var(--font-ja); font-size: 10px; font-weight: 500; }
:lang(en) .venue-row__count { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-top: 0; }
.venue-row__body { display: flex; flex-direction: column; min-width: 0; }
.venue-row__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* bulk「応援したチーム」 */
.support-bulk > * + * { margin-top: var(--sp-2); }
.support-bulk__lead strong { font-size: 20px; }
.support-bulk__row { display: flex; gap: var(--sp-2); align-items: center; }
.support-bulk__row .input { flex: 1; min-width: 0; }
.support-bulk__row .btn { flex: none; }
.bulk-list[role="list"] { padding: 4px var(--sp-4); margin-top: var(--sp-3); }
.bulk-row { display: flex; flex-direction: column; padding: 10px 0; }
.bulk-row + .bulk-row { border-top: 1px solid var(--line); }
.bulk-row__teams { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; }
.bulk-row__mine { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bulk-row__score { color: var(--muted); font-weight: 700; }
