:root {
  color-scheme: light dark;
  --radius: 0.75rem;
  --bottom-chrome-height: 9rem;
  --site-header-height: 3.5rem;
  --background: oklch(0.985 0.008 220);
  --foreground: oklch(0.2 0.04 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.2 0.04 250);
  --primary: oklch(0.48 0.14 240);
  --primary-foreground: oklch(0.99 0 0);
  --muted: oklch(0.96 0.012 220);
  --muted-foreground: oklch(0.48 0.03 250);
  --border: oklch(0.91 0.02 220);
  --destructive: oklch(0.55 0.22 25);
  --brand-accent: oklch(0.82 0.17 85);
  --header: oklch(0.22 0.05 250);
  --header-foreground: oklch(0.97 0.01 220);
  --header-muted: oklch(0.3 0.05 250);
  --header-border: oklch(0.32 0.05 250);
  --category-gym: oklch(0.52 0.14 155);
  --category-trainer: oklch(0.58 0.16 55);
  --category-organizer: oklch(0.5 0.16 305);
  --category-indie: oklch(0.68 0.16 70);
  --category-prereg: oklch(0.52 0.2 25);
  --warning-muted: oklch(0.96 0.04 85);
  --warning-foreground: oklch(0.38 0.08 60);
  --warning-border: oklch(0.85 0.08 80);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
}

html {
  font-size: 17px;
  scroll-padding-top: calc(var(--site-header-height) + 0.75rem);
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--header-border);
  background: var(--header);
  color: var(--header-foreground);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  max-width: 64rem;
  margin: 0 auto;
  height: var(--site-header-height);
  padding: 0 0.5rem;
}

.site-header__citron {
  display: block;
  padding: 0;
  border: none;
  background: url(/icon-192.png) center/cover;
  opacity: 0.6;
  cursor: pointer;
}

.site-header__citron:hover {
  opacity: 1;
}

@media (min-width: 640px) {
  .site-header__citron {
    width: 2.25rem;
    height: 2.25rem;
  }
}

.site-header__map-text {
  display: block;
  line-height: 1.2;
}

.site-header__user {
  display: inline-flex;
  align-items: center;
}

.site-header__user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 999px;
  background: var(--header-muted);
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.site-header__user-btn:hover {
  opacity: 0.85;
}

.site-header__user-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__user-initial {
  line-height: 1;
}

.proto-citron-splash {
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: var(--header);
  color: var(--header-foreground);
}

.proto-citron-splash::backdrop {
  background: var(--header);
}

.proto-citron-splash__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
}

.proto-citron-splash__img {
  width: 13rem;
  height: 13rem;
  object-fit: contain;
}

.proto-citron-splash__text {
  margin: 0;
  max-width: 20rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.proto-user-menu {
  padding: 0;
  border: none;
  background: transparent;
}

.proto-user-menu::backdrop {
  background: rgb(0 0 0 / 0.35);
}

.proto-user-menu__panel {
  position: relative;
  min-width: 12rem;
  padding: 0.75rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
}

.proto-user-menu__who {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.proto-user-menu__link {
  display: block;
  padding: 0.35rem 0;
  color: inherit;
  font-size: 0.875rem;
  text-decoration: none;
}

.proto-user-menu__signout {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.proto-user-menu__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  padding: 0.25rem 0.45rem;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 640px) {
  .site-header__inner {
    gap: 0.5rem;
    padding: 0 1rem;
  }
}

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .site-logo {
    font-size: 1.125rem;
  }
}

.site-logo__brand {
  color: var(--brand-accent);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.site-header__map {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .site-header__map {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
}

.site-header__map:hover {
  background: var(--header-muted);
}

.site-header__map-ico {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-accent);
  flex-shrink: 0;
}

.site-header__map-line {
  display: block;
}

.site-header__map-sub {
  display: block;
  font-size: 0.625rem;
  font-weight: 400;
  opacity: 0.7;
}

.proto-menu summary {
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
}

.proto-menu summary:hover {
  background: var(--header-muted);
}

.proto-menu[open] summary {
  background: var(--header-muted);
}

.proto-menu__panel {
  position: absolute;
  right: 0.5rem;
  top: calc(var(--site-header-height) - 0.25rem);
  z-index: 50;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  background: var(--header);
  box-shadow: var(--shadow-md);
}

.proto-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 640px) {
  .proto-main {
    padding: 2rem 1rem 2.5rem;
  }
}

.proto-page-header {
  margin-bottom: 1.5rem;
}

.proto-page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .proto-page-header h1 {
    font-size: 1.875rem;
  }
}

.proto-page-header__desc {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.alert-banner {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border: 1px solid var(--warning-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--warning-muted);
  color: var(--warning-foreground);
  font-size: 0.875rem;
}

.alert-banner--compact {
  display: none;
}

@media (max-width: 639px) {
  .alert-banner--desktop {
    display: none;
  }
  .alert-banner--compact {
    display: block;
    margin: 0.25rem 0 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.75rem;
  }
}

.map-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid color-mix(in oklch, var(--primary) 15%, transparent);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--primary) 5%, transparent),
    transparent
  );
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
}

.map-cta.map-cta--slim {
  padding: 0.65rem 0.85rem;
}

.map-cta:hover {
  border-color: color-mix(in oklch, var(--primary) 25%, transparent);
  box-shadow: var(--shadow-md);
}

.map-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.proto-secondary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
}

.proto-secondary-nav a {
  color: var(--primary);
  text-decoration: none;
}

.proto-secondary-nav a[aria-current="page"] {
  font-weight: 600;
}

.proto-secondary-nav a:hover {
  text-decoration: underline;
}

.proto-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0 0 1rem;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--muted-foreground);
}

.proto-tab--md {
  display: none;
}

.proto-tab--sm {
  display: block;
}

@media (min-width: 640px) {
  .proto-tabs {
    grid-template-columns: repeat(6, 1fr);
  }

  .proto-tab--md {
    display: flex;
  }

  .proto-tab--sm {
    display: none;
  }
}

.proto-tab-date {
  position: relative;
  margin: 0;
  min-width: 0;
}

.proto-tab-date > summary {
  list-style: none;
  cursor: pointer;
}

.proto-tab-date > summary::-webkit-details-marker {
  display: none;
}

.proto-tab__chev {
  margin-left: 0.15rem;
  font-size: 0.65rem;
  opacity: 0.65;
}

.proto-tab-date__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.proto-tab-date__item {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: calc(var(--radius) - 4px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.8125rem;
}

.proto-tab-date__item[aria-current="page"] {
  background: var(--muted);
  font-weight: 600;
}

.proto-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.35rem;
  border-radius: calc(var(--radius) - 2px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.proto-tab[data-proto-tab-ico] {
  min-width: 2rem;
}

@media (min-width: 640px) {
  .proto-tab {
    font-size: 0.875rem;
  }
}

.proto-tab[aria-current="page"] {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.proto-areas {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.proto-areas__pin {
  flex-shrink: 0;
  line-height: 1.8rem;
  opacity: 0.55;
  font-size: 0.875rem;
}

.proto-areas__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}

.proto-areas__col {
  flex: 1;
  min-width: 0;
}

.proto-venue-chips[hidden] {
  display: none !important;
}

.proto-venue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0 0.25rem;
}

.pvc {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  background: color-mix(in oklch, var(--muted) 80%, transparent);
  color: var(--foreground);
  cursor: pointer;
}

.pvc.is-on {
  background: var(--primary);
  color: var(--primary-foreground);
}

.pap--clear {
  padding: 0.25rem 0.5rem;
}

.pap {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: pointer;
}

.pap.is-on,
.pap[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.psr {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  align-items: stretch;
}

.psr__label {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.psr__input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
}

.psr__filter {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.pcount {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.btn--ghost {
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__login {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .site-header__login {
    padding: 0 0.65rem;
    font-size: 0.8125rem;
  }
}

.site-header__login:hover {
  background: var(--header-muted);
}

.ect-r {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.ect-r--plain {
  display: block;
}

.eico-slot {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--muted);
  overflow: hidden;
}

.eico {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--muted);
}

.proto-meter {
  box-sizing: border-box;
  height: 4.5625rem;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--muted) 30%, transparent);
  overflow: hidden;
}

.proto-meter[aria-busy="true"]:not(:has(.proto-meter__inner))::before {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  content: "参考: お気に入り — 読込み中";
}

.proto-meter[aria-busy="true"]:not(:has(.proto-meter__inner))::after {
  display: block;
  height: 0.35rem;
  content: "";
}

.proto-meter[aria-busy="true"]:not(:has(.proto-meter__inner))
  .proto-meter__bar {
  margin-top: 0;
}

.proto-meter[aria-hidden="true"] {
  height: 4.5625rem;
  visibility: hidden;
}

.proto-meter__line {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.proto-meter__sub {
  margin: 0.15rem 0 0;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.proto-meter__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.proto-meter__pct {
  font-size: 0.75rem;
  font-weight: 600;
}

.proto-meter__bar {
  height: 0.375rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--muted);
  overflow: hidden;
}

.proto-meter__fill {
  height: 100%;
  border-radius: 999px;
}

.proto-meter__fill.tone-emerald {
  background: oklch(0.62 0.17 150);
}

.proto-meter__fill.tone-amber {
  background: oklch(0.75 0.15 85);
}

.proto-meter__fill.tone-orange {
  background: oklch(0.68 0.18 55);
}

.proto-meter__fill.tone-rose {
  background: oklch(0.58 0.2 25);
}

.site-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: color-mix(in oklch, var(--header-foreground) 70%, transparent);
  cursor: pointer;
}

.site-header__menu:hover {
  background: var(--header-muted);
  color: var(--header-foreground);
}

.site-header__menu svg {
  width: 1.25rem;
  height: 1.25rem;
}

.proto-nav-sheet {
  padding: 0;
  border: none;
  max-width: min(20rem, 85vw);
  width: min(20rem, 85vw);
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.proto-nav-sheet::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.proto-nav-sheet__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--header);
  color: var(--header-foreground);
  border-left: 1px solid var(--header-border);
}

.proto-nav-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--header-border);
}

.proto-nav-sheet__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.proto-nav-sheet__close {
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--header-muted) 40%, transparent);
  color: inherit;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.proto-nav-sheet__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  overflow-y: auto;
}

.proto-nav-sheet__link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: color-mix(in oklch, var(--header-foreground) 78%, transparent);
  font-size: 0.9375rem;
}

.proto-nav-sheet__link:hover {
  background: var(--header-muted);
  color: var(--header-foreground);
}

.proto-filter-sheet {
  padding: 0;
  border: none;
  max-width: min(28rem, 100vw);
  width: min(28rem, 100vw);
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.proto-filter-sheet::backdrop {
  background: rgb(0 0 0 / 0.45);
}

.proto-filter-sheet__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--background);
  color: var(--foreground);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.proto-filter-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.proto-filter-sheet__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.proto-filter-sheet__close {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  color: inherit;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.proto-filter-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.proto-filter-sheet__body .proto-filters label {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.proto-filters--noscript {
  margin: 1rem;
}

.ect-r .ect {
  flex: 1;
  min-width: 0;
}

.ecdow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.ecf,
.ecc {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.eca-a {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0 1.25rem 1rem;
  margin-top: -0.5rem;
}

.efav,
.eshop,
.eshare {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.efav.is-on,
.eshop.is-on {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.proto-filters--sheet {
  margin: 0 0 1rem;
}

.proto-filters--sheet > summary {
  display: none;
}

.ed-hero {
  margin: 0 0 1rem;
}

.ed-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.ed-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ed-hero h1,
.ed-hero__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.ed-hero__title--cancelled {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.ed-info__label .ico,
.ecc .ico,
.ecf .ico,
.ed-views .ico {
  margin-right: 3px;
}

.efav.is-on .ico,
.ed-action-bar__btn.is-on .ico {
  color: #eab308;
  fill: currentColor;
}

.eshop.is-on .ico {
  color: #10b981;
}

.proto-tab .ico,
.efav .ico,
.eshop .ico,
.eshare .ico {
  width: 1em;
  height: 1em;
}

.ed-views {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.ed-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.ed-icons--empty {
  min-height: 1.5rem;
  margin: 0.5rem 0;
}

.ed-icons__item {
  position: relative;
}

.ed-icons__link {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  overflow: hidden;
}

.ed-icons__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-date {
  text-align: center;
  margin: 0 0 1rem;
}

.ed-date--ended {
  opacity: 0.7;
  color: var(--muted-foreground);
}

.ed-date__day {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.ed-date__time {
  margin: 0.25rem 0 0;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.ed-countdown {
  margin: 0.35rem 0 0;
}

.ed-info-card {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
}

@media (min-width: 640px) {
  .ed-info-card {
    grid-template-columns: 1fr 1fr;
  }
}

.ed-info__cell--wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .ed-info__cell--wide {
    grid-column: span 2;
  }
}

.ed-info__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.ed-info__value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--foreground);
}

.ed-hero__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.ed-hero__icons img {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.proto-list-status {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  background: var(--warning-muted);
  font-size: 0.8125rem;
  color: var(--warning-foreground);
}

.proto-list-loading [data-proto-list-body] {
  opacity: 0.72;
}

.proto-filters {
  margin: 0 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.proto-filters summary {
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-weight: 600;
  list-style-position: inside;
}

.proto-filters form {
  padding: 0 0.65rem 0.65rem;
}

.proto-filters label {
  display: block;
  margin: 0 0 0.5rem;
}

.proto-filters input[type="search"],
.proto-filters input[type="date"],
.proto-filters select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.4rem 0.5rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}

.ds,
.day-section {
  margin-bottom: 1.5rem;
}

.ds h2,
.day-section h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
}

.eg,
.event-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .eg,
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ec {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}

.el {
  border-left-width: 4px;
  border-left-color: var(--brand-accent);
}

.ec:hover {
  box-shadow: var(--shadow-md);
}

.eca {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
}

.ec__head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ect {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.eb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.b {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

.bp {
  background: var(--primary);
  color: var(--primary-foreground);
}

.bs {
  background: var(--muted);
  color: var(--foreground);
}

.bx {
  background: var(--destructive);
  color: #fff;
  font-weight: 700;
}

.bi {
  background: var(--category-indie);
  color: #fff;
}

.br {
  background: var(--category-prereg);
  color: #fff;
  font-weight: 700;
}

.bg {
  background: var(--category-gym);
  color: #fff;
}

.bt {
  background: var(--category-trainer);
  color: #fff;
}

.bo {
  background: var(--category-organizer);
  color: #fff;
}

.ecb {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.ecd,
.ecdd {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.ecv {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0;
  font-weight: 500;
  color: var(--foreground);
}

.btn {
  display: inline-block;
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  color: var(--foreground);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: color-mix(in oklch, var(--muted) 85%, var(--foreground));
}

.btn--primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.proto-footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.proto-footer__follow {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
}

.proto-footer__follow-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.proto-footer__follow-body {
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.proto-footer__follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.proto-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.75rem;
}

.proto-footer__links a {
  color: var(--muted-foreground);
  text-decoration: underline;
}

.proto-footer__copy {
  margin: 0;
}

.article-detail h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.article-detail .sec {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.article-detail .sec strong {
  color: var(--foreground);
}

.x {
  color: var(--destructive);
  font-weight: 700;
}

.map-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 0 1rem;
  padding: 3px;
  border-radius: var(--radius);
  background: var(--muted);
}

.map-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.map-tabs a[aria-current="page"] {
  background: var(--background);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}

.map-tabs--2 {
  grid-template-columns: repeat(2, 1fr);
}

.map-layout {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .map-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.map-list-panel {
  order: 2;
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .map-list-panel {
    order: 2;
    max-height: calc(100vh - 12rem);
    overflow: auto;
  }
}

.map-panel {
  order: 1;
  width: 100%;
}

@media (min-width: 768px) {
  .map-panel {
    order: 1;
    flex: 1;
    min-width: 0;
  }
}

.map-stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 0.65rem;
  aspect-ratio: 640 / 480;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--muted);
  overflow: hidden;
}

.map-stage img.map-base {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.map-pins-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.map-pin-dot {
  position: absolute;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--destructive);
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transform: translate(-50%, -100%);
}

.map-pin-dot::before {
  content: "📍";
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.25));
}

.map-attribution {
  margin: 0.25rem 0 0;
  font-size: 0.68rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}

.map-venue-block {
  margin: 0 0 0.875rem;
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--border);
}

.map-venue-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
}

.map-venue-block ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
}

.cl-entry {
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ed-back {
  margin: 0 0 0.75rem;
}

.ed-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.15rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
}

.ed-back-btn::before {
  content: "←";
}

.ed-back-btn:hover {
  color: var(--foreground);
}

.article-detail--event {
  padding-bottom: 5rem;
}

body.has-ed-action-bar .article-detail--event {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.ed-cancel-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklch, var(--destructive) 30%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--destructive) 8%, transparent);
  color: var(--destructive);
  font-size: 0.875rem;
  font-weight: 600;
}

.ed-prereg-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in oklch, var(--category-prereg) 35%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--category-prereg) 8%, transparent);
}

.ed-prereg-alert__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--category-prereg);
}

.ed-prereg-alert__body {
  margin: 0;
  font-size: 0.8125rem;
  color: color-mix(in oklch, var(--category-prereg) 75%, var(--foreground));
}

.ed-info__maps {
  text-decoration: none;
  color: inherit;
}

.ed-info__maps-pill {
  display: inline-flex;
  margin-top: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

.b.be {
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 600;
}

.ed-icons__x {
  position: absolute;
  left: -0.15rem;
  bottom: -0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-size: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted-foreground);
}

.ed-icons__fav {
  position: absolute;
  right: -0.15rem;
  bottom: -0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  padding: 0.1rem 0.35rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.ed-desc {
  white-space: pre-wrap;
}

.ed-cats {
  margin: 0.75rem 0;
}

.ed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.btn--x {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}

.btn--tonamel {
  border-color: var(--category-trainer);
  color: var(--category-trainer);
}

.ed-result {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 2px solid color-mix(in oklch, var(--brand-accent) 55%, transparent);
  border-radius: calc(var(--radius) + 6px);
  background: color-mix(in oklch, var(--brand-accent) 12%, var(--card));
}

.ed-result__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.ed-result__winner {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.ed-result__meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.ed-cta {
  margin: 0 0 1rem;
}

.ed-cta--ended {
  text-align: center;
  font-weight: 600;
  color: var(--muted-foreground);
}

.ed-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ed-related__list li {
  margin: 0 0 0.65rem;
}

.ed-related__list .t {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.ed-report-wrap {
  text-align: center;
  margin: 1rem 0;
}

.ed-report {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  cursor: pointer;
}

.ed-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  border-top: 1px solid var(--border);
  background: var(--background);
  transition: transform 0.25s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ed-action-bar--hidden {
  transform: translateY(100%);
}

.ed-action-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
}

.ed-action-bar__btn:last-child {
  border-right: none;
}

.ed-action-bar__ico {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
}

.ed-action-bar__ico .ico {
  width: 1.1em;
  height: 1.1em;
}

.ed-action-bar__btn.is-on,
.ed-action-bar__btn.is-on .ed-action-bar__ico {
  color: var(--brand-accent);
}

.ed-x {
  margin: 1.25rem 0;
}

.ed-x__item {
  margin: 0.75rem 0;
  min-height: 4rem;
}

.proto-share-sheet,
.proto-error-report {
  padding: 0;
  border: none;
  max-width: none;
  width: 100%;
  margin: 0 auto auto;
  background: transparent;
}

.proto-share-sheet::backdrop,
.proto-error-report::backdrop {
  background: rgb(0 0 0 / 0.4);
}

.proto-share-sheet__panel,
.proto-error-report__panel {
  margin-top: auto;
  padding: 1.25rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1rem 1rem 0 0;
  background: var(--background);
}

.proto-share-sheet__title,
.proto-error-report__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.proto-share-sheet__actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.proto-share-sheet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  cursor: pointer;
}

.proto-share-sheet__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--muted);
  font-size: 1.25rem;
}

.proto-share-sheet__circle--x {
  background: #000;
  color: #fff;
}

.proto-share-sheet__circle--line {
  background: #06c755;
  color: #fff;
  font-weight: 700;
}

.proto-share-sheet__cancel,
.proto-error-report__close {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius);
  background: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.proto-error-report__opts {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.proto-error-report__opts button {
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  cursor: pointer;
}

.map-list-card {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  overflow: hidden;
}

.map-list-card__head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.map-list-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.map-list-card__meta {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.map-list-card__body {
  max-height: min(60vh, calc(100vh - 14rem));
  overflow: auto;
}

.map-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-list-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.map-venue-row {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.map-venue-hit {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-venue-hit:hover {
  background: color-mix(in oklch, var(--muted) 45%, transparent);
}

.map-venue-row__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-venue-pin {
  opacity: 0.45;
  font-size: 0.875rem;
}

.map-venue-pin--on {
  opacity: 1;
}

.map-venue-row__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.map-venue-row__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.map-venue-row__km {
  margin-left: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.map-venue-row__events {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.25rem;
  list-style: none;
}

.map-venue-event {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
}

.map-venue-event__time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

.map-venue-event__title {
  color: var(--foreground);
  text-decoration: none;
}

.map-venue-event__title:hover {
  text-decoration: underline;
}
