:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #66726b;
  --line: #dfe6e1;
  --paper: #f7f9f5;
  --surface: #ffffff;
  --green: #007a3d;
  --green-dark: #004a2d;
  --green-soft: #eaf5ee;
  --red: #d01920;
  --red-dark: #981016;
  --red-soft: #fff1f0;
  --gold: #b78312;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(rgba(247, 249, 245, 0.68), rgba(247, 249, 245, 0.82)),
    url("assets/watermark-fnx-artistic.png") center top / min(1680px, 135vw) auto no-repeat fixed,
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--green-dark);
  line-height: 1.08;
}

h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 900;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}

.brand strong,
footer strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.5rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  text-decoration: none;
}

.contact-links a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.contact-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-links .text-icon {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-links .text-icon span {
  line-height: 1;
}

.contact-links .cbx-link {
  border-color: rgba(0, 122, 61, 0.38);
  background: #fff;
  color: var(--green-dark);
}

.contact-links .cbx-link:hover {
  background: var(--green-soft);
}

.contact-links .fide-link {
  border-color: #182018;
  background: #182018;
  color: #fff3bf;
}

.contact-links .fide-link:hover {
  background: var(--green-dark);
  color: #fff;
}

.site-nav a,
.hero-actions a,
.panel-action {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

main {
  padding: 0 clamp(18px, 5vw, 70px) 54px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding: 62px 0 50px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14px -24px 0;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 249, 245, 0.58), rgba(247, 249, 245, 0.28)),
    url("assets/watermark-fnx-artistic.png") center / cover no-repeat;
  opacity: 0.72;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a {
  background: #fff;
  border-color: var(--line);
}

.hero-actions a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.hero-actions .primary-action,
.panel-action {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hero-actions .primary-action:hover,
.panel-action:hover {
  background: var(--red-dark);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(0, 74, 45, 0.09);
  backdrop-filter: blur(6px);
}

.hero-panel > span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.section-block {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
}

.event-list,
.signup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card,
.signup-grid article,
.criteria-box,
.activity-rule {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.event-card,
.signup-grid article,
.criteria-box,
.activity-rule {
  padding: 24px;
}

.event-card.featured {
  border-color: rgba(0, 122, 61, 0.35);
  background: linear-gradient(180deg, #fff, var(--green-soft));
}

.event-card time,
.event-card span,
.signup-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card p,
.signup-grid p,
.criteria-box li {
  color: var(--muted);
}

.event-card span {
  margin: 8px 0 0;
  color: var(--green);
}

.event-card a,
.signup-grid a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.event-card a:hover,
.signup-grid a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.page-hero {
  position: relative;
  max-width: 860px;
  padding: 62px 0 42px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.rating-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 18px;
  align-items: start;
}

.ranking-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.rating-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(0, 122, 61, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 74, 45, 0.06);
}

.rating-search h3 {
  margin-bottom: 0;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.13);
}

.search-summary {
  grid-column: 2;
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fbf8);
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  color: var(--green-dark);
  font-weight: 900;
}

.search-result span {
  color: var(--muted);
  font-size: 0.88rem;
}

.search-result dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, auto));
  gap: 12px;
  margin: 0;
  text-align: right;
}

.search-result dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result dd {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.ranking-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 74, 45, 0.06);
}

.ranking-title {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.ranking-title h3,
.activity-rule h3 {
  margin: 0;
}

.ranking-card ol {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-card li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-card li:last-child {
  border-bottom: 0;
}

.ranking-position {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.ranking-player {
  min-width: 0;
}

.ranking-player strong,
.ranking-player span {
  display: block;
}

.ranking-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player span {
  color: var(--muted);
  font-size: 0.86rem;
}

.ranking-score {
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.ranking-empty {
  display: block;
  padding: 20px 22px;
  color: var(--muted);
}

.ranking-note {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.criteria-box {
  position: sticky;
  top: 96px;
}

.criteria-box ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
}

.activity-rule {
  background: linear-gradient(180deg, #fff, var(--red-soft));
}

.activity-rule p {
  margin: 10px 0 0;
  color: var(--muted);
}

.calendar-list,
.process-list {
  display: grid;
  gap: 12px;
}

.calendar-item,
.process-list article,
.notice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.calendar-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
}

.calendar-item time {
  color: var(--red);
  font-weight: 900;
}

.calendar-item h3,
.calendar-item p,
.process-list p,
.notice-box p {
  margin-bottom: 0;
}

.calendar-item p,
.process-list p,
.notice-box p {
  color: var(--muted);
}

.calendar-item > span {
  min-width: 120px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.process-list article,
.notice-box {
  padding: 20px;
}

.process-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.signup-grid article {
  min-height: 210px;
}

.signup-grid span {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 70px);
  border-top: 4px solid var(--green-dark);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .rating-info-grid,
  .ranking-showcase,
  .rating-search,
  .calendar-item {
    grid-template-columns: 1fr;
  }

  .search-summary {
    grid-column: 1;
  }

  .site-header {
    display: grid;
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-contact {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .criteria-box {
    position: static;
  }

  .event-list,
  .signup-grid {
    grid-template-columns: 1fr;
  }

  .calendar-item > span {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  main {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav a {
    width: 100%;
  }

  .hero-actions,
  .panel-action {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 20px;
  }

  .rating-search {
    padding: 18px;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result dl {
    text-align: left;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
