.page-home {
  --home-gap: 24px;
  --home-pad: 20px;
  --home-radius: 4px;
  display: block;
  padding-bottom: 24px;
}

.page-home .hero {
  position: relative;
  isolation: isolate;
  padding-block: 24px 0;
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.page-home .hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 38%;
  opacity: 0.22;
  filter: saturate(0.6) contrast(1.05);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(88% 58% at 78% 0%, rgba(140, 240, 90, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(7, 18, 13, 0.55) 0%, rgba(7, 18, 13, 0.9) 62%, #07120D 100%);
}

.page-home .hero__wrap {
  position: relative;
  z-index: 1;
}

.page-home .hero__frame {
  position: relative;
  border: 2px solid #2B3A31;
  border-radius: var(--home-radius);
  background: rgba(12, 31, 23, 0.88);
  box-shadow: 6px 6px 0 #030906;
  padding: 18px var(--home-pad) 22px;
}

.page-home .hero__frame .plate {
  margin: 0 0 18px;
}

.page-home .grid--12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--home-gap);
}

.page-home .col-3,
.page-home .col-4,
.page-home .col-5,
.page-home .col-7,
.page-home .col-8,
.page-home .col-9,
.page-home .col-12 {
  grid-column: span 12;
  min-width: 0;
}

.page-home .hero__title {
  margin: 10px 0 14px;
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #F3F0E2;
}

.page-home .hero__lead {
  max-width: 46ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #9FAE9F;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
}

.page-home .league-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid #2B3A31;
}

.page-home .league-switch__tab {
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 10px;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  background: transparent;
  color: #9FAE9F;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.page-home .league-switch__tab:hover {
  color: #F3F0E2;
  border-color: #1F4A32;
  background: rgba(31, 74, 50, 0.35);
}

.page-home .league-switch__tab[aria-pressed="true"],
.page-home .league-switch__tab.is-active {
  background: #8CF05A;
  border-color: #8CF05A;
  color: #07120D;
  font-weight: 700;
}

.page-home .wall__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2B3A31;
}

.page-home .wall__list {
  display: grid;
  gap: 8px;
}

.page-home .fixture {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #2B3A31;
  border-left: 3px solid #1F4A32;
  border-radius: var(--home-radius);
  background: #141C17;
  box-shadow: 3px 3px 0 #030906;
  transition: border-color 120ms ease, transform 120ms ease;
}

.page-home .fixture:hover,
.page-home .fixture:focus-within {
  border-color: #8CF05A;
  border-left-color: #8CF05A;
  transform: translate(-1px, -1px);
}

.page-home .fixture--live {
  border-left-color: #FF7A2F;
}

.page-home .fixture__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-home .fixture__row--main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.page-home .fixture__copy {
  font: inherit;
  padding: 2px 7px;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  background: rgba(31, 74, 50, 0.3);
  color: #8CF05A;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.page-home .fixture__copy:hover {
  border-color: #8CF05A;
  background: rgba(140, 240, 90, 0.14);
}

.page-home .fixture__copy[data-copied] {
  color: #F3F0E2;
  border-color: #FF7A2F;
}

.page-home .fixture__side {
  font-size: 15px;
  color: #F3F0E2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .fixture__side--away {
  text-align: right;
}

.page-home .fixture__vs {
  font-size: 12px;
  color: #9FAE9F;
}

.page-home .fixture__row--sub {
  justify-content: space-between;
  gap: 10px;
}

.page-home .fixture__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9FAE9F;
}

.page-home .fixture__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2B3A31;
}

.page-home .fixture--live .fixture__dot {
  background: #FF7A2F;
  animation: home-pulse 1.6s ease-in-out infinite;
}

.page-home .fixture--live .fixture__state {
  color: #FF7A2F;
}

.page-home .fixture__log {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 120ms ease, opacity 120ms ease;
}

.page-home .fixture:hover .fixture__log,
.page-home .fixture:focus-within .fixture__log {
  max-height: 44px;
  opacity: 1;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.page-home .section {
  padding-block: 56px;
}

.page-home .section--tight {
  padding-block: 32px;
}

.page-home .refresh__band {
  position: relative;
  margin-bottom: 32px;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .refresh__band img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.55);
}

.page-home .refresh__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 18, 13, 0.85) 0%, rgba(7, 18, 13, 0.25) 45%, rgba(7, 18, 13, 0.8) 100%);
}

.page-home .refresh__band-note {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8CF05A;
}

.page-home .refresh__title,
.page-home .switch__title,
.page-home .download__title,
.page-home .compare__title,
.page-home .journal__title,
.page-home .ports__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #F3F0E2;
}

.page-home .refresh__body,
.page-home .switch__body,
.page-home .compare__body {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
  color: #9FAE9F;
  max-width: 62ch;
}

.page-home .progress {
  position: relative;
  height: 10px;
  margin: 18px 0 10px;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  background: #141C17;
  overflow: hidden;
}

.page-home .progress__fill {
  display: block;
  height: 100%;
  width: 64%;
  background: #8CF05A;
}

.page-home .progress__ticks {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(43, 58, 49, 0.9) 0 1px, transparent 1px 20%);
  pointer-events: none;
}

.page-home .refresh__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: #2B3A31;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .refresh__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: #0C1F17;
}

.page-home .refresh__idx {
  font-size: 13px;
  color: #FF7A2F;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.page-home .refresh__item-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #F3F0E2;
}

.page-home .refresh__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #9FAE9F;
}

.page-home .switch__title {
  margin-bottom: 0;
}

.page-home .switch__body:last-child {
  margin-bottom: 0;
}

.page-home .download__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-home .download__title {
  margin: 0;
  flex: 1 1 auto;
}

.page-home .download__lead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.85;
  color: #9FAE9F;
}

.page-home .fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: #2B3A31;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .fields li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: #07120D;
  flex-wrap: wrap;
}

.page-home .fields__key {
  color: #8CF05A;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.page-home .export__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.page-home .export__tab {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  background: transparent;
  color: #9FAE9F;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.page-home .export__tab:hover,
.page-home .export__tab.is-active,
.page-home .export__tab[aria-pressed="true"] {
  color: #07120D;
  background: #8CF05A;
  border-color: #8CF05A;
  font-weight: 700;
}

.page-home .export__panels {
  display: grid;
  gap: 12px;
}

.page-home .export__panel {
  padding: 18px 20px;
  border: 2px solid #2B3A31;
  border-radius: var(--home-radius);
  background: #141C17;
  box-shadow: 6px 6px 0 #030906;
}

.page-home .export__panel p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #9FAE9F;
}

.page-home .export__panel p:last-child {
  margin-bottom: 0;
}

.page-home .export__name {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #8CF05A;
}

.page-home .compare__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #2B3A31;
  border-radius: var(--home-radius);
  box-shadow: 6px 6px 0 #030906;
  filter: saturate(0.7);
}

.page-home .ruler {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 1px;
  background: #2B3A31;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .ruler__item {
  padding: 16px;
  background: #0C1F17;
}

.page-home .ruler__name {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #B4623A;
  margin-bottom: 6px;
}

.page-home .ruler__desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #9FAE9F;
}

.page-home .ruler__line {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #1F4A32 0%, #1F4A32 46%, #8CF05A 46%, #8CF05A 54%, #1F4A32 54%, #1F4A32 100%);
}

.page-home .ruler__line--dots {
  height: 8px;
  background-image: radial-gradient(circle, #8CF05A 0 3px, transparent 3px);
  background-size: calc(100% / 6) 8px;
  background-repeat: repeat-x;
  background-color: transparent;
  background-position: 0 center;
}

.page-home .journal__note {
  margin: 0 0 16px;
}

.page-home .journal__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  opacity: 0.85;
}

.page-home .index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: #2B3A31;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .index-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  background: #07120D;
  transition: background-color 120ms ease;
}

.page-home .index-list__item:hover {
  background: #0C1F17;
}

.page-home .index-list__idx {
  font-size: 13px;
  color: #8CF05A;
  padding-top: 3px;
}

.page-home .index-list__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700;
}

.page-home .index-list__title a {
  color: #F3F0E2;
  text-decoration: none;
  border-bottom: 1px solid #2B3A31;
  transition: border-color 120ms ease, color 120ms ease;
}

.page-home .index-list__title a:hover {
  color: #8CF05A;
  border-bottom-color: #8CF05A;
}

.page-home .index-list__body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #9FAE9F;
}

.page-home .ports__title {
  margin-bottom: 18px;
}

.page-home .ports__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: #2B3A31;
  border: 1px solid #2B3A31;
  border-radius: var(--home-radius);
  overflow: hidden;
}

.page-home .ports__item {
  background: #07120D;
}

.page-home .ports__item a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 14px 18px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.page-home .ports__item a:hover {
  background: #0C1F17;
}

.page-home .ports__name {
  flex: 0 0 auto;
  min-width: 7em;
  font-size: 15px;
  font-weight: 700;
  color: #8CF05A;
}

.page-home .ports__item a:hover .ports__name {
  color: #FF7A2F;
}

.page-home .ports__item .note {
  flex: 1 1 18ch;
}

.page-home :where(a, button):focus-visible {
  outline: 2px solid #8CF05A;
  outline-offset: 2px;
  transform: translateY(-1px);
  transition: transform 80ms ease;
}

@media (min-width: 720px) {
  .page-home .hero {
    padding-block: 32px 0;
  }

  .page-home .hero__frame {
    padding: 24px 28px 30px;
  }

  .page-home .refresh__band img {
    height: 200px;
  }

  .page-home .section {
    padding-block: 72px;
  }

  .page-home .section--tight {
    padding-block: 40px;
  }

  .page-home .col-4 {
    grid-column: span 4;
  }

  .page-home .col-5 {
    grid-column: span 5;
  }

  .page-home .col-7 {
    grid-column: span 7;
  }

  .page-home .col-8 {
    grid-column: span 8;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-gap: 28px;
    --home-pad: 32px;
  }

  .page-home .hero__grid {
    align-items: start;
  }

  .page-home .col-3 {
    grid-column: span 3;
  }

  .page-home .col-9 {
    grid-column: span 9;
  }

  .page-home .compare__grid {
    align-items: start;
  }

  .page-home .refresh__item {
    padding: 20px 22px;
  }

  .page-home .index-list__item {
    padding: 22px 24px;
  }
}

@media (max-width: 480px) {
  .page-home .hero__frame {
    padding: 14px 14px 18px;
  }

  .page-home .fixture__row--main {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }

  .page-home .fixture__side {
    font-size: 14px;
  }

  .page-home .league-switch__tab {
    font-size: 12px;
    padding: 3px 8px;
  }

  .page-home .ports__name {
    min-width: 0;
  }
}
