/* 基本要素と共通部品（docs/02_screens.md 1.3・1.4 節）。画面固有のスタイルは features/ 側の CSS に置く。 */
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding-inline: 16px;
  padding-block: 0 calc(90px + env(safe-area-inset-bottom));
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  text-wrap: balance;
  margin: 0;
  line-height: 1.3;
}
h1 {
  font-size: 1.5rem;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
select,
input[type='text'],
input[type='search'],
input[type='number'] {
  font: inherit;
  color: var(--fg);
  background: var(--well);
  border: 0;
  border-radius: 14px;
  box-shadow: var(--press);
  padding: 12px 14px;
  width: 100%;
  min-height: 46px;
}
.num,
.score {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: var(--f-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.84rem;
}
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 20px;
}
section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
}
.sec-head .sub {
  font-size: 0.84rem;
  color: var(--muted);
}
.card {
  border-radius: var(--r);
  box-shadow: var(--raise);
  padding: 22px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.card-s {
  border-radius: var(--r-s);
  box-shadow: var(--raise-s);
  padding: 14px 16px;
  background: var(--bg);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.well {
  border-radius: var(--r-s);
  box-shadow: var(--press);
  background: var(--well);
  padding: 14px 16px;
  min-width: 0;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: var(--press);
  background: var(--well);
  color: var(--teal-ink);
  white-space: nowrap;
  line-height: 1.4;
}
.st {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: var(--press);
  background: var(--well);
  white-space: nowrap;
  line-height: 1.4;
  color: var(--muted);
}
.st.live {
  color: var(--on-teal);
  background: linear-gradient(145deg, var(--teal), var(--teal-2));
  box-shadow: var(--raise-s);
}
.st.next,
.st.current,
.st.warn {
  color: var(--warn);
}
.st.cancelled,
.st.bad {
  color: var(--full);
}
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--on-teal);
  background: linear-gradient(145deg, var(--teal), var(--teal-2));
  box-shadow: var(--raise-s);
  font-weight: 700;
}
.btn.ghost {
  color: var(--teal-ink);
  background: var(--bg);
}
.pill {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--raise-s);
  background: var(--bg);
  font-weight: 600;
}
.pill[aria-pressed='true'] {
  box-shadow: var(--press);
  background: var(--well);
  color: var(--teal-ink);
}
