:root {
  --blue: #0e59a0;
  --navy: #11396a;
  --ink: #001538;
  --muted: #777777;
  --line: #90c4ff;
  --rail: #e8e8e8;
  --foot: #111111;
  --font: "TildaSans", Arial, Helvetica, sans-serif;
  --rail-w: 87px;
  --page: 1200px;
  --pad: clamp(14px, 3.2vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; }
html,
body {
  background-color: #f4f7fb;
  background-image: url("../img/page-bg.jpg");
  background-repeat: repeat;
  background-size: 420px;
}
body {
  margin: 0;
  font-family: var(--font);
  color: #333;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
button, input, textarea, select { font: inherit; }
a, button { -webkit-tap-highlight-color: rgba(14, 89, 160, .15); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; padding: 8px; }

.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail-w);
  background: transparent;
  z-index: 3;
  pointer-events: none;
}

.layout { min-width: 0; }
.stage {
  min-width: 0;
  width: calc(100% - var(--rail-w));
  margin-left: var(--rail-w);
  max-width: 100%;
}
#content {
  width: min(var(--page), 100%);
  margin: 0 auto;
  background: #fff;
}

.hero-band {
  position: relative;
  width: min(var(--page), 100%);
  aspect-ratio: 1200 / 385;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}
.hero-wave-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right top;
  animation: wave-drift 18s ease-in-out infinite alternate;
}
.hero-logo {
  position: absolute;
  left: 7.25%;
  top: 10.4%;
  width: 11%;
  max-width: 132px;
  z-index: 4;
}
.hero-logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 132px;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: logo-in 1.15s cubic-bezier(.2, 1.15, .28, 1) both;
}
.hero-logo:hover img { animation: logo-play 1.8s ease-in-out infinite; }
.hero-wave-clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0 38%, rgba(255,255,255,.88) 50%, transparent 64%);
  pointer-events: none;
}
.hero-title {
  position: absolute;
  left: 20%;
  top: 10.4%;
  width: min(44%, 520px);
  z-index: 4;
  padding: 4px 8px 8px 0;
}
.hero-kicker {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  z-index: 4;
  color: #000;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .04em;
  animation: tilda-fade .7s ease .1s both;
}
.hero-name {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  z-index: 4;
  margin: 4px 0 0;
  color: #0a1628;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  -webkit-text-stroke: .35px currentColor;
  paint-order: stroke fill;
  animation: tilda-fade .75s ease .18s both;
}
.hero-crown {
  position: relative;
  left: auto;
  top: auto;
  width: min(180px, 38%);
  z-index: 4;
  margin-top: 10px;
  animation: tilda-fade .7s ease .32s both;
}
.hero-nav {
  position: absolute;
  left: 20%;
  right: 28%;
  top: 48%;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0;
  animation: tilda-up .7s ease .42s both;
}
.hero-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000 !important;
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  line-height: 1.55;
  min-width: 0;
  padding: 0 clamp(4px, .7vw, 9px) 8px;
  transition: color .2s ease;
}
.hero-king {
  width: 19px;
  height: 19px;
  margin-bottom: 2px;
  opacity: 0;
  transform: translateY(8px) scale(.55);
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, 1.2, .32, 1), filter .2s ease;
  filter: none;
}
.hero-link.is-active .hero-king,
.hero-link:hover .hero-king,
.hero-link:focus-visible .hero-king {
  opacity: 1;
  transform: none;
}
.hero-link.is-on-dark .hero-king {
  filter: brightness(0) invert(1);
}
.hero-link.is-on-light .hero-king {
  filter: none;
}
.hero-link span { white-space: nowrap; }
.hero-link i {
  display: block;
  width: clamp(36px, 4.4vw, 52px);
  height: 1px;
  background: var(--navy);
  margin-top: 6px;
  opacity: .35;
  transition: opacity .2s ease, width .2s ease, transform .2s ease;
  transform-origin: center;
}
.hero-link.is-active i,
.hero-link:hover i {
  opacity: 1;
  width: clamp(44px, 5.2vw, 62px);
}
.hero-sep {
  width: 2px;
  height: 18px;
  object-fit: contain;
  align-self: center;
  margin-bottom: 10px;
  opacity: .85;
}
.burger {
  display: none;
  position: absolute;
  left: auto;
  right: max(12px, env(safe-area-inset-right));
  top: max(12px, env(safe-area-inset-top));
  z-index: 11;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 57, 106, .18);
  background: #fff;
  border-radius: 10px;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.chess-fx {
  display: none;
}
.fx-piece {
  position: absolute;
  font-size: clamp(28px, 4vw, 48px);
  color: rgba(14, 89, 160, .11);
  animation: piece-float 16s ease-in-out infinite;
  will-change: transform;
}
.fx-n { left: 6%; top: 22%; animation-duration: 17s; }
.fx-N { right: 8%; top: 18%; animation-duration: 21s; animation-delay: -4s; }
.fx-k { left: 14%; bottom: 18%; animation-duration: 19s; animation-delay: -2s; font-size: 56px; }
.fx-q { right: 16%; bottom: 24%; animation-duration: 23s; animation-delay: -7s; }
.fx-b { left: 48%; top: 12%; animation-duration: 15s; animation-delay: -1s; }
.fx-r { right: 28%; top: 42%; animation-duration: 20s; animation-delay: -9s; }
.fx-p { left: 72%; bottom: 12%; animation-duration: 14s; animation-delay: -5s; }

.hero-gate {
  position: absolute;
  right: max(18px, 2.4%);
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: stretch;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
}
.hero-gate__main,
.hero-gate {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7e3f0;
  box-shadow: 0 10px 24px rgba(17, 57, 106, .12);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-gate:hover,
.hero-gate__main:hover {
  transform: translateY(-1px);
  border-color: #11396a;
  box-shadow: 0 14px 28px rgba(17, 57, 106, .16);
}
.hero-gate:focus-visible,
.hero-gate__main:focus-visible,
.hero-gate__exit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.hero-gate--in {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 8px;
}
.hero-gate--in:hover { transform: none; border: 0; box-shadow: none; }
.hero-gate--in .hero-gate__main {
  background: #11396a;
  border-color: #0d2e56;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 57, 106, .24);
}
.hero-gate--in .hero-gate__main:hover {
  border-color: #f3d48a;
}
.hero-gate__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
  border-radius: 12px;
  overflow: visible;
}
.hero-gate__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-gate__king {
  transform-origin: 13px 20px;
  animation: gate-step 2.6s ease-in-out infinite;
}
.hero-gate__copy {
  display: grid;
  line-height: 1.15;
  padding-right: 6px;
}
.hero-gate__copy strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.hero-gate__copy em {
  font-style: normal;
  font-size: 10px;
  color: #6b849c;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-gate--in .hero-gate__copy em { color: rgba(243, 212, 138, .82); }
.hero-gate__exit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #ead0cc;
  color: #a61b1b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 18px rgba(192, 57, 43, .1);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-gate__exit .hero-gate__icon { width: 42px; height: 42px; flex-basis: 42px; }
.hero-gate__exit:hover {
  transform: translateY(-1px);
  border-color: #c0392b;
  background: #fff7f6;
}
@keyframes gate-step {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -1px); }
}
.hero-link--account,
.hero-sep--account,
.hero-link--search,
.hero-sep--search { display: none !important; }

.chess-strip {
  border-bottom: 1px solid var(--line);
  padding: 8px 0 10px;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.chess-strip__rank {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(384px, 90%);
  margin: 0 auto;
  height: clamp(28px, 5vw, 36px);
  border: 1px solid var(--navy);
  overflow: hidden;
}
.chess-strip__rank i:nth-child(odd) { background: #eef5fb; }
.chess-strip__rank i:nth-child(even) { background: #8ebbe6; }
.chess-strip__knight {
  position: absolute;
  top: 0;
  left: 0;
  width: 12.5%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--navy);
  animation: knight-hop 5.6s ease-in-out infinite;
  pointer-events: none;
}

.page {
  width: min(var(--page), 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--pad) calc(48px + env(safe-area-inset-bottom));
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.col-main { flex: 0 0 65%; max-width: 65%; min-width: 0; }
.col-side { flex: 0 0 32%; max-width: 32%; min-width: 0; }

.news-list { display: grid; }
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  border-radius: 8px;
  transition: background .25s ease, transform .25s ease;
}
.news-item__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eef4fa center/cover no-repeat;
  overflow: hidden;
  transition: transform .45s ease, box-shadow .35s ease;
}
.news-item h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  transition: color .2s ease;
}
.news-item time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-item p {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item:hover { background: #f7fbff; }
.news-item:hover h2 { color: var(--blue); }
.news-item:hover .news-item__img { transform: scale(1.03); }
.news-item::after {
  content: "♘";
  position: absolute;
  right: 10px;
  top: 14px;
  font-size: 20px;
  color: var(--blue);
  opacity: 0;
  pointer-events: none;
}
.news-item:hover::after { animation: knight-capture .6s ease; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  margin: 0 0 8px auto;
  max-width: min(320px, 100%);
  width: 100%;
  min-width: 0;
}
.search input { border: 0; padding: 8px 0; outline: none; flex: 1 1 auto; min-width: 0; width: auto; font-size: 16px; }
.search button {
  border: 0; background: transparent; color: var(--navy);
  cursor: pointer; font-weight: 600; font-size: 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.more {
  display: block;
  margin: 22px auto 0;
  background: transparent;
  border: 0;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: letter-spacing .2s ease, color .2s ease;
}
.more:hover { letter-spacing: .04em; }
.more[disabled] { opacity: .45; }

.side-box { padding: 8px 0 24px; }
.side-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}
.side-box p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #333; }
.side-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.side-socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
  transition: transform .2s ease;
}
.side-socials a:hover { transform: scale(1.12); }

.page-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: #000;
}
.lead { color: var(--muted); margin: 0 0 18px; }
.meta { color: var(--muted); font-size: 13px; }

.chess-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 22px;
  padding: 10px 14px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.chess-banner__piece {
  font-size: 22px;
  font-weight: 400;
  text-transform: none;
  animation: king-bob 1.8s ease-in-out infinite;
}
.chess-banner__piece.is-black { animation-delay: .4s; }

.piece-row {
  display: flex;
  justify-content: space-between;
  max-width: 420px;
  margin: 0 0 22px;
  font-size: 22px;
  color: var(--navy);
  opacity: .55;
}
.piece-row span {
  display: inline-block;
  animation: piece-pop 2.8s ease-in-out infinite;
}
.piece-row span:nth-child(2) { animation-delay: .15s; }
.piece-row span:nth-child(3) { animation-delay: .3s; }
.piece-row span:nth-child(4) { animation-delay: .45s; }
.piece-row span:nth-child(5) { animation-delay: .6s; font-size: 26px; }
.piece-row span:nth-child(6) { animation-delay: .75s; }
.piece-row span:nth-child(7) { animation-delay: .9s; }
.piece-row span:nth-child(8) { animation-delay: 1.05s; }

.crown-rule { margin: 12px 0 24px; }
.crown-rule img { width: 22px; animation: king-bob 1.6s ease-in-out infinite; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.chip-btn:hover { transform: translateY(-1px); }
.chip-btn.is-on { background: #000; color: #fff; border-color: #000; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; padding: 10px 16px; font-weight: 600; font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--navy); color: #fff; }
.btn-blue:hover { box-shadow: 0 8px 18px rgba(17, 57, 106, .22); }
.btn-line { background: #fff; color: #333; border: 1px solid #333; }

.tour-list { display: grid; gap: 0; }
.tour-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(80px, 110px) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background .25s ease;
}
.tour-card::before {
  content: "♘";
  position: absolute;
  left: -2px;
  top: 18px;
  font-size: 16px;
  color: var(--blue);
  opacity: 0;
  pointer-events: none;
}
.tour-card:hover { background: #f7fbff; }
.tour-card:hover::before { animation: knight-jump .7s ease; }
.tour-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.tour-card__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: start; }
.tour-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.tour-card__mark { display: grid; justify-items: start; align-content: start; gap: 6px; }
.tour-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #11396a;
  box-shadow: 0 8px 18px rgba(17,57,106,.16);
}
.tour-logo--sm { width: 40px; height: 40px; box-shadow: 0 4px 10px rgba(17,57,106,.14); }
.tour-logo--lg { width: 112px; height: 112px; margin-bottom: 4px; }
.status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-soon { color: #14629a; }
.status-live { color: #1a7a3c; }
.status-done { color: #666; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.person { padding: 12px 0; border-bottom: 1px solid #eee; }
.avatar {
  width: 58px; height: 58px; border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 4px; font-size: 16px; }
.person p { margin: 0; color: var(--muted); font-size: 14px; }
.president { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 24px; }
.president .avatar { width: 120px; height: 120px; font-size: 32px; }

.fed { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.fed-head {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6eef6;
}
.fed-head .page-title { margin: 0; }
.fed-nav { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.fed-nav a {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid #d7e7f7;
  border-radius: 999px;
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fed-nav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.fed-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.72fr);
  gap: 22px 28px;
  align-items: start;
}
.fed-intro__copy { min-width: 0; }
.fed-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.fed-facts li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  padding: 14px 14px 12px;
  border: 1px solid #e6eef6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  min-width: 0;
}
.fed-facts__mark {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}
.fed-facts strong {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.fed-facts span { font-size: 12px; color: var(--muted); }
.fed-facts li > a { display: contents; color: inherit; }
.fed-lead {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  max-width: none;
}
.fed-about p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  max-width: none;
}

.fed-org, .fed-docs { margin-top: 36px; }
.fed-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 20px;
  color: var(--ink);
}
.fed-h__board {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background:
    conic-gradient(#11396a 90deg, #90c4ff 0 180deg, #11396a 0 270deg, #90c4ff 0);
  flex: none;
}
.fed-tree { display: grid; justify-items: stretch; gap: 0; width: 100%; }
.fed-node {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e6eef6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 57, 106, .04);
}
.fed-node--king {
  width: 100%;
  background: linear-gradient(135deg, #f4f8ff 0%, #fff 55%);
  border-color: #cfe0f4;
  padding: 18px;
}
.fed-node--rook { width: 100%; max-width: 560px; }
.fed-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.fed-node h3 { margin: 0; font-size: 17px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.fed-node p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.fed-node__body { min-width: 0; display: grid; align-content: start; }
.fed-photo {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.fed-photo img { width: 100%; height: 100%; object-fit: cover; }
.fed-photo--lg { width: 88px; height: 88px; font-size: 20px; border-radius: 16px; }
.fed-photo--sm { width: 44px; height: 44px; font-size: 11px; border-radius: 10px; }
.fed-photo__piece {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 6px 0 12px 0;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 0 0 1px #e6eef6;
}

.fed-bio-btn {
  --bio-ink: #11396a;
  --bio-gold: #f3d48a;
  margin-top: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid #b9d2ef;
  background:
    linear-gradient(110deg, rgba(243, 212, 138, .22) 0%, transparent 38%),
    linear-gradient(180deg, #fff, #f4f8ff);
  color: var(--bio-ink);
  cursor: pointer;
  font: inherit;
  box-shadow:
    0 10px 22px rgba(17, 57, 106, .1),
    inset 0 0 0 1px rgba(255, 255, 255, .7);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
}
.fed-bio-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity .2s ease, left .45s ease;
  pointer-events: none;
}
.fed-bio-btn:hover {
  transform: translateY(-2px);
  border-color: var(--bio-ink);
  box-shadow: 0 14px 28px rgba(17, 57, 106, .16);
}
.fed-bio-btn:hover::before {
  opacity: 1;
  left: 110%;
}
.fed-bio-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.fed-bio-btn__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
}
.fed-bio-btn__sq {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    linear-gradient(45deg, #1a4a7a 25%, transparent 25%) 0 0 / 10px 10px,
    linear-gradient(-45deg, #1a4a7a 25%, transparent 25%) 0 5px / 10px 10px,
    linear-gradient(45deg, transparent 75%, #1a4a7a 75%) 5px -5px / 10px 10px,
    linear-gradient(-45deg, transparent 75%, #1a4a7a 75%) -5px 0 / 10px 10px,
    #0d2e56;
  box-shadow: inset 0 0 0 1.5px rgba(243, 212, 138, .55);
  animation: bio-sq-shift 8s linear infinite;
}
@keyframes bio-sq-shift {
  from { background-position: 0 0, 0 5px, 5px -5px, -5px 0; }
  to { background-position: 20px 0, 20px 5px, 25px -5px, 15px 0; }
}
.fed-bio-btn__piece {
  position: relative;
  z-index: 1;
  color: var(--bio-gold);
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
  animation: bio-piece-bob 2.4s ease-in-out infinite;
}
@keyframes bio-piece-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.fed-bio-btn__copy {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}
.fed-bio-btn__copy strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}
.fed-bio-btn__copy em {
  font-style: normal;
  font-size: 10px;
  color: #6b849c;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fed-bio-btn__trail {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.fed-bio-btn__trail i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9db8d6;
  opacity: .45;
  animation: bio-trail 1.2s ease-in-out infinite;
}
.fed-bio-btn__trail i:nth-child(2) { animation-delay: .15s; opacity: .7; }
.fed-bio-btn__trail i:nth-child(3) {
  animation-delay: .3s;
  width: 7px;
  height: 7px;
  background: var(--bio-ink);
  opacity: 1;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 0;
}
@keyframes bio-trail {
  0%, 100% { transform: translateX(0); opacity: .4; }
  50% { transform: translateX(2px); opacity: 1; }
}
.fed-bio-btn:hover .fed-bio-btn__trail i:nth-child(3) {
  background: var(--blue);
}
.fed-file .fed-bio-btn {
  margin-top: 8px;
  padding: 3px 10px 3px 3px;
  gap: 7px;
}
.fed-file .fed-bio-btn__mark { width: 28px; height: 28px; flex-basis: 28px; }
.fed-file .fed-bio-btn__piece { font-size: 13px; }
.fed-file .fed-bio-btn__copy em,
.fed-file .fed-bio-btn__trail { display: none; }
.fed-file .fed-bio-btn__copy strong { font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .fed-bio-btn__sq,
  .fed-bio-btn__piece,
  .fed-bio-btn__trail i { animation: none; }
  .fed-bio-btn::before { display: none; }
}
.fed-bio-link {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.club-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.club-card {
  padding: 16px 16px 14px;
  border: 1px solid #e6eef6;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  min-width: 0;
}
.club-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
}
.club-card__addr {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
.club-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.bio-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.bio-sheet[hidden] { display: none !important; }
.bio-sheet__back {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 21, 37, .55);
  cursor: pointer;
  backdrop-filter: blur(2px);
}
.bio-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(86dvh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 26px;
  box-shadow: 0 24px 60px rgba(8, 21, 37, .32);
  animation: bio-in .28s ease both;
}
@keyframes bio-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.bio-sheet__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f0f4f8;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.bio-sheet__top {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 36px;
  margin-bottom: 18px;
}
.bio-sheet__photo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  color: #f3d48a;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
}
.bio-sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-sheet__role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.bio-sheet__panel h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}
.bio-sheet__body {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.bio-sheet__body h3 {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.bio-sheet__body p { margin: 0; }
.bio-sheet__body ul { margin: 0; padding-left: 18px; }
body.bio-sheet-open { overflow: hidden; }

.fed-stem {
  width: min(72%, 480px);
  height: 22px;
  margin: 2px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.fed-stem i {
  border-top: 1px solid var(--line);
}
.fed-stem i:first-child { border-right: 1px solid var(--line); margin-top: 10px; height: 12px; }
.fed-stem i:last-child { border-left: 1px solid var(--line); margin-top: 10px; height: 12px; }
.fed-stem b {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 10px;
  background: var(--line);
  transform: translateX(-50%);
}
.fed-stem--single {
  display: block;
  width: 1px;
  height: 18px;
  margin: 2px auto 0;
  background: var(--line);
}

.fed-row--officers {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fed-rank { width: 100%; }
.fed-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.fed-sub span { font-size: 15px; text-transform: none; letter-spacing: 0; }
.fed-files {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d7e7f7;
  border: 1px solid #d7e7f7;
  border-radius: 12px;
  overflow: hidden;
}
.fed-file {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  text-align: center;
  min-width: 0;
}
.fed-file.is-light { background: #f7fbff; }
.fed-file.is-dark { background: #eef4fb; }
.fed-file strong {
  font-size: 12px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
}
.fed-file span { font-size: 11px; color: var(--muted); line-height: 1.3; }

.fed-docs .filters { margin-bottom: 12px; }
.fed-doc-wrap { display: grid; gap: 16px; }
.fed-docs .doc-group h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.fed-docs .doc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.fed-docs .doc-list a { padding: 8px 0; font-size: 14px; }

.fed-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 16px;
  border: 2px solid #11396a;
  border-radius: 4px;
  overflow: hidden;
  background: #11396a;
  align-items: start;
  box-shadow: 0 12px 28px rgba(17, 57, 106, .08);
}
.fed-board {
  min-width: 0;
  border: 0;
  background: #f4f8ff;
}
.fed-board:nth-child(1),
.fed-board:nth-child(4) { background: #f7fbff; }
.fed-board:nth-child(2),
.fed-board:nth-child(3) { background: #dce8f6; }
.fed-board summary,
.fed-board--link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 18px 16px;
  cursor: pointer;
}
.fed-board summary { list-style: none; }
.fed-board summary::-webkit-details-marker { display: none; }
.fed-board summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  opacity: .4;
  justify-self: end;
}
.fed-board[open] summary::after { transform: rotate(-135deg); opacity: .7; }
.fed-board__piece {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: #f3e6b8;
  background:
    linear-gradient(160deg, #1b4d80 0%, #11396a 58%, #0c2748 100%);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, .55);
}
.fed-board__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.fed-board__copy strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}
.fed-board__copy span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .7;
}
.fed-board--link {
  color: var(--ink) !important;
  text-decoration: none;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}
.fed-board--link:hover { filter: brightness(.98); }
.fed-board__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #11396a;
  border: 1px solid rgba(17, 57, 106, .25);
  background: rgba(255,255,255,.7);
  padding: 5px 8px;
  border-radius: 4px;
}
.fed-board__list {
  margin: 0;
  padding: 0 16px 16px;
  display: grid;
  border-top: 1px dashed rgba(17, 57, 106, .22);
}
.fed-board__list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 57, 106, .08);
}
@media (min-width: 761px) {
  .fed-board__list li {
    grid-template-columns: 32px minmax(0, 1fr) minmax(120px, 38%);
  }
  .fed-board__mail--empty { display: block; }
}
.fed-board__list li:last-child { border-bottom: 0; }
.fed-board__n {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  border-radius: 3px;
}
.fed-board__list li:nth-child(even) .fed-board__n {
  background: #11396a;
  color: #f3e6b8;
}
.fed-board__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fed-board__who b {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.3;
}
.fed-board__who em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.fed-board__mail {
  font-size: 12px;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.fed-board__mail--empty { display: none; }
.fed-board__empty {
  margin: 0;
  padding: 12px 16px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px dashed rgba(17, 57, 106, .22);
}

.doc-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #eee;
  color: var(--blue); font-weight: 600; font-size: 15px;
  flex-wrap: wrap;
}
.doc-list a span { color: var(--muted); font-weight: 400; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery-h { margin: 28px 0 8px; font-size: 22px; color: #000; }
.album {
  min-height: 180px;
  background: #11396a center/cover;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,21,56,.75)); }
.album::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
}
.album:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(17,57,106,.18); }
.album:hover::before { opacity: 1; }
.album div { position: relative; z-index: 2; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.album-hero { display: block; margin: 18px 0; }
.album-hero img { width: 100%; max-height: min(520px, 70vh); object-fit: cover; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 36px; }
.article-hero { min-height: 240px; background: #eee center/cover; margin-bottom: 16px; aspect-ratio: 16/9; }
.prose { font-size: 18px; line-height: 1.7; font-weight: 300; }
.prose h3 { font-weight: 600; color: var(--ink); }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.side-card { border-top: 1px solid var(--navy); padding-top: 12px; }
.side-card a { display: block; margin: 10px 0; font-weight: 600; color: var(--ink); font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 32px; }
.form { display: grid; gap: 10px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px 12px;
  font-size: 16px;
  border-radius: 2px;
}
.req { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.req table { width: 100%; min-width: 280px; border-collapse: collapse; }
.req td { padding: 7px 0; border-bottom: 1px solid #eee; vertical-align: top; font-size: 14px; }
.req td:first-child { color: var(--muted); width: 42%; }
.notice { padding: 12px; background: #eeffed; }
.notice-err { background: #fde8e8; color: #9b1c1c; }

.board-box { padding-top: 4px; }
.mini-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(320px, 100%);
  max-width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--navy);
  box-shadow: 0 10px 24px rgba(17, 57, 106, .12);
}
.mini-board button {
  border: 0;
  aspect-ratio: 1;
  font-size: clamp(14px, 2.4vw, 20px);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: filter .15s ease, transform .2s ease;
}
.mini-board button.light { background: #eef5fb; }
.mini-board button.dark { background: #8ebbe6; }
.mini-board button.is-on { outline: 2px solid #0e59a0; outline-offset: -2px; z-index: 1; }
.mini-board button.is-hint::after {
  content: "";
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(14, 89, 160, .45);
  display: block;
  margin: 0 auto;
}
.mini-board button.is-hint { font-size: 0; }
.mini-board button.is-hint.has-piece { font-size: clamp(14px, 2.4vw, 20px); }
.mini-board button.is-hint.has-piece::after {
  position: absolute;
  inset: 4px;
  width: auto;
  height: auto;
  background: transparent;
  border: 2px solid rgba(176, 32, 32, .7);
  border-radius: 50%;
}
.mini-board button.is-jump { animation: square-pop .45s ease; }
.mini-board button:hover { filter: brightness(1.06); }

.mate-page { text-align: center; padding-top: 28px; }
.mate-scene {
  position: relative;
  height: 90px;
  margin: 0 auto 12px;
  max-width: 240px;
}
.mate-king, .mate-queen, .mate-knight {
  position: absolute;
  font-size: 42px;
  color: var(--navy);
}
.mate-king { left: 50%; top: 24px; transform: translateX(-50%); animation: mate-fall 1.4s ease both; }
.mate-queen { left: 18%; top: 8px; animation: piece-float 3s ease-in-out infinite; }
.mate-knight { right: 16%; top: 10px; animation: knight-jump 1.2s ease infinite; }

.site-footer {
  width: 100%;
  background: #000;
  color: #ddd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.foot-inner {
  width: min(var(--page), 100%);
  margin: 0 auto;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px 28px;
  padding: 18px var(--pad) calc(18px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.copy {
  font-size: 12px;
  font-weight: 600;
  color: #bdbdbd;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.socials { display: flex; gap: 10px; align-items: center; }
.socials a {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: transform .2s ease;
}
.socials a:hover { transform: scale(1.12); }
.socials svg { width: 30px; height: 30px; display: block; }

.clevel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(212, 176, 106, .28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    #0a0a0a;
  color: #f3e7c8;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.clevel:hover {
  border-color: #d4b06a;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(212, 176, 106, .18), inset 0 1px 0 rgba(255,255,255,.1);
}
.clevel__seal {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
}
.clevel__seal svg { width: 100%; height: 100%; display: block; }
.clevel__txt {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}
.clevel__txt small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a8a68;
}
.clevel__txt strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #f6e7c2;
}
.clevel__txt span {
  color: #d4b06a;
  font-weight: 800;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.86);
  display: none; place-items: center; z-index: 80; padding: 16px;
}
.lightbox.is-on { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; width: auto; height: auto; }
.lightbox button {
  position: absolute; top: 16px; right: 16px;
  background: transparent; color: #fff; border: 0; font-size: 32px; cursor: pointer;
}

.tour-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
}
.tour-sheet.is-on { display: grid; }
.tour-sheet__back {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(144,196,255,.22), transparent 55%),
    rgba(0, 21, 56, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.tour-sheet__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: min(88vh, 740px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 21, 56, .38);
  animation: tour-sheet-in .38s cubic-bezier(.2, 1.15, .28, 1) both;
}
.tour-sheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #11396a;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tour-sheet__close:hover { background: #0e59a0; }
.tour-sheet__files {
  display: flex;
  justify-content: space-between;
  padding: 10px 48px 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #90c4ff;
}
.tour-sheet__top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 18px 14px;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.tour-sheet__logo {
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 14px;
  background: conic-gradient(#11396a 90deg, #90c4ff 0 180deg, #11396a 0 270deg, #90c4ff 0);
  box-shadow: 0 10px 22px rgba(17, 57, 106, .18);
}
.tour-sheet__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.tour-sheet__head h2 {
  margin: 6px 0 4px;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}
.tour-sheet__place {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.tour-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 12px;
}
.tour-sheet__meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: #f4f8ff;
  border: 1px solid #d7e7f7;
  border-radius: 999px;
  padding: 5px 10px;
}
.tour-sheet__text {
  margin: 0;
  padding: 0 18px 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}
.tour-sheet__moves {
  display: grid;
  gap: 8px;
  padding: 8px 18px 18px;
}
.tour-move {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #d7e7f7;
  border-radius: 12px;
  background: #f7fbff;
  color: inherit;
}
.tour-move:hover { border-color: var(--line); background: #eef5fb; }
.tour-move__piece {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
}
.tour-move strong { display: block; font-size: 14px; color: var(--ink); }
.tour-move em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.tour-move b {
  font-size: 16px;
  color: var(--blue);
  font-weight: 400;
}
.tour-move--main {
  background: linear-gradient(180deg, #11396a, #0e4e8c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 57, 106, .22);
}
.tour-move--main:hover { filter: brightness(1.06); background: linear-gradient(180deg, #154a7e, #0e59a0); }
.tour-move--main strong, .tour-move--main em, .tour-move--main b { color: #fff; }
.tour-move--main .tour-move__piece { background: rgba(255,255,255,.12); color: #fff; }
.tour-move--main em { opacity: .82; }
body.tour-sheet-open { overflow: hidden; }
@keyframes tour-sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.inpage {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 0 0 18px;
}
.inpage a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.inpage a:hover { border-color: var(--navy); }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.cta-card {
  background: linear-gradient(180deg, #f4f9ff, #fff);
  border: 1px solid #d7e7f7;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 12px 28px rgba(17,57,106,.08);
}
.cta-card .btn { margin: 6px 8px 0 0; }
.side-box {
  margin-bottom: 22px;
}
.next-tours { display: grid; gap: 10px; margin: 10px 0 12px; }
.next-tour {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.next-tour .tour-logo { grid-row: 1 / span 3; }
.next-tour:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: 0 10px 22px rgba(17,57,106,.1);
}
.next-tour strong { color: var(--ink); font-size: 15px; }
.next-tour span:last-child { color: var(--muted); font-size: 13px; }

.cal-wrap {
  --cal-i: 0;
  --cal-slot: calc(100% / 3);
  position: relative;
  margin: 8px 0 32px;
  border-radius: 22px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 180px at 50% -40px, rgba(144,196,255,.35), transparent 70%),
    linear-gradient(180deg, #11396a 0, #0e59a0 78px, #eef4fa 78px, #f7fbff 100%);
  border: 1px solid #d5e4f4;
  box-shadow: 0 22px 50px rgba(17,57,106,.12);
}
.cal-wrap::before,
.cal-wrap::after {
  content: "♘";
  position: absolute;
  top: 92px;
  font-size: 120px;
  line-height: 1;
  color: rgba(17,57,106,.06);
  pointer-events: none;
  z-index: 0;
}
.cal-wrap::before { left: 8px; transform: rotate(-18deg); }
.cal-wrap::after { right: 12px; content: "♔"; transform: rotate(12deg); }
.cal-wrap:focus { outline: none; }
.cal-wrap:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }
.cal-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px 8px;
}
.cal-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: baseline;
  color: #d7e8ff;
  min-width: 0;
}
.cal-legend h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: .04em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}
.cal-legend span {
  font-size: 13px;
  opacity: .72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-legend span:first-child { text-align: right; }
.cal-nav,
.cal-arrow {
  border: 0;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.cal-nav svg,
.cal-arrow svg { display: block; }
.cal-nav {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-size: 22px;
  line-height: 1;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
  animation: cal-nav-blink 1.7s ease-in-out infinite;
}
.cal-nav svg { width: 20px; height: 20px; }
.cal-nav:hover {
  background: rgba(255,255,255,.28);
  animation: none;
  opacity: 1;
}
.cal-nav:active { transform: scale(.94); }
.cal-nav--prev { transform: scaleX(-1); }
.cal-nav--prev:active { transform: scaleX(-1) scale(.94); }
.cal-nav:disabled,
.cal-arrow:disabled {
  animation: none;
  opacity: .28;
  cursor: default;
  pointer-events: none;
}
.cal-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 8px 0 22px;
}
.cal-arrow {
  position: absolute;
  top: 58%;
  z-index: 6;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0e59a0, #11396a);
  box-shadow: 0 10px 24px rgba(17,57,106,.28);
  transform: translateY(-50%);
}
.cal-arrow svg { width: 26px; height: 26px; }
.cal-arrow--prev {
  left: 8px;
  animation: cal-arrow-blink-left 1.6s ease-in-out infinite;
}
.cal-arrow--next {
  right: 8px;
  animation: cal-arrow-blink-right 1.6s ease-in-out infinite;
}
.cal-arrow:hover {
  animation: none;
  transform: translateY(-50%) scale(1.08);
  background: linear-gradient(180deg, #1570c4, #0e59a0);
  box-shadow: 0 0 0 8px rgba(144,196,255,.35), 0 12px 28px rgba(17,57,106,.35);
}
.cal-arrow:active { transform: translateY(-50%) scale(.94); }
@keyframes cal-nav-blink {
  0%, 100% { opacity: .62; box-shadow: 0 0 0 0 rgba(144,196,255,0); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(144,196,255,.28); }
}
@keyframes cal-arrow-blink-left {
  0%, 100% {
    opacity: .72;
    transform: translateY(-50%) translateX(0) scale(1);
    box-shadow: 0 10px 24px rgba(17,57,106,.22);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(-7px) scale(1.08);
    box-shadow: 0 0 0 10px rgba(144,196,255,.32), 0 12px 28px rgba(17,57,106,.38);
  }
}
@keyframes cal-arrow-blink-right {
  0%, 100% {
    opacity: .72;
    transform: translateY(-50%) translateX(0) scale(1);
    box-shadow: 0 10px 24px rgba(17,57,106,.22);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(7px) scale(1.08);
    box-shadow: 0 0 0 10px rgba(144,196,255,.32), 0 12px 28px rgba(17,57,106,.38);
  }
}
.cal-track {
  display: flex;
  width: 100%;
  align-items: stretch;
  transform: translateX(calc(50% - (var(--cal-slot) / 2) - (var(--cal-i) * var(--cal-slot))));
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.cal-month {
  flex: 0 0 var(--cal-slot);
  padding: 8px 10px 0;
  opacity: .38;
  transform: scale(.86);
  filter: saturate(.7);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,1,.36,1), filter .45s ease;
  transform-origin: 50% 55%;
}
.cal-month.is-side {
  opacity: .78;
  transform: scale(.92);
  filter: saturate(.95);
  cursor: pointer;
  z-index: 1;
}
.cal-month.is-center {
  opacity: 1;
  transform: scale(1);
  filter: none;
  z-index: 2;
}
.cal-month.is-pop {
  z-index: 8;
  opacity: 1;
  filter: none;
}
.cal-month.is-far { pointer-events: none; }
.cal-month__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 4px 8px;
  position: relative;
  color: var(--navy);
}
.cal-month__head strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 400;
}
.cal-month__head span:last-of-type { color: var(--muted); font-size: 13px; }
.cal-month__piece {
  position: absolute;
  right: 6px; top: -6px;
  font-size: 28px;
  opacity: .14;
  pointer-events: none;
}
.cal-month.is-center .cal-month__piece { opacity: .22; color: var(--blue); }
.cal-month__board {
  position: relative;
  background:
    repeating-conic-gradient(#f7fbff 0% 25%, #e7f0f8 0% 50%) 0 0 / 16px 16px;
  border: 3px solid #c5d8ec;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(17,57,106,.08);
  overflow: visible;
}
.cal-month.is-center .cal-month__board {
  background: #fff;
  border-color: var(--navy);
  box-shadow:
    0 0 0 4px rgba(14,89,160,.08),
    0 18px 36px rgba(17,57,106,.16);
}
.cal-week, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-week {
  padding: 2px 2px 6px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}
.cal-grid { gap: 3px; }
.cal-cell { position: relative; min-height: 40px; aspect-ratio: 1; }
.cal-cell.is-open { z-index: 12; }
.cal-month.is-pop .cal-cell:not(.has-event) { pointer-events: none; }
.cal-cell.is-empty { border-radius: 6px; }
.cal-cell.is-empty.is-light { background: #f6f9fd; }
.cal-cell.is-empty.is-dark { background: #d9e7f5; }
.cal-day {
  width: 100%; height: 100%; min-height: 0;
  border: 0;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 0;
  position: relative;
}
.cal-cell.is-light .cal-day { background: #f6f9fd; color: var(--ink); }
.cal-cell.is-dark .cal-day { background: #d9e7f5; color: var(--navy); }
.cal-day.is-mute { cursor: default; color: #8aa0b8; }
.cal-day--pics {
  display: grid;
  place-items: stretch;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(14,89,160,.16);
}
.cal-day__num {
  position: absolute;
  top: 3px; left: 3px;
  z-index: 3;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 4px;
  background: rgba(17, 57, 106, .9);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 1px 3px rgba(17,57,106,.25);
}
.cal-marks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16% 5% 7%;
  pointer-events: none;
}
.cal-marks img,
.cal-marks__more {
  flex: 0 0 auto;
  position: relative;
  width: 78%;
  max-width: 42px;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  background: #11396a;
  border: 1.5px solid #fff;
  box-shadow: 0 3px 8px rgba(17,57,106,.28);
  transition: transform .2s ease;
}
.cal-marks[data-n="1"] img { width: 82%; max-width: 48px; }
.cal-marks[data-n="2"] img {
  width: 58%;
  max-width: 34px;
  margin-left: -22%;
}
.cal-marks[data-n="2"] img:first-child { margin-left: 0; z-index: 1; }
.cal-marks[data-n="2"] img:nth-child(2) { z-index: 2; }
.cal-marks[data-n="3"] img,
.cal-marks[data-n="3"] .cal-marks__more {
  width: 48%;
  max-width: 28px;
  margin-left: -24%;
}
.cal-marks[data-n="3"] img:first-child { margin-left: 0; z-index: 1; }
.cal-marks[data-n="3"] img:nth-child(2),
.cal-marks[data-n="3"] .cal-marks__more:nth-child(2) { z-index: 2; }
.cal-marks[data-n="3"] img:nth-child(3),
.cal-marks[data-n="3"] .cal-marks__more { z-index: 3; }
.cal-marks__more {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(180deg, #0e59a0, #11396a);
}
.cal-cell.has-event .cal-day--pics:hover {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(14,89,160,.28);
}
.cal-cell.has-event .cal-day--pics:hover .cal-marks img,
.cal-cell.has-event .cal-day--pics:hover .cal-marks__more {
  transform: translateY(-1px) scale(1.04);
}
.cal-cell.is-today .cal-day {
  box-shadow: inset 0 0 0 2px #90c4ff;
  font-weight: 800;
}
.cal-cell.has-event.is-today .cal-day {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--blue);
}
.cal-cell:nth-child(n+29) .cal-pop {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}
.cal-cell:nth-child(n+29) .cal-pop::before {
  top: auto;
  bottom: -14px;
}
.cal-month.is-center .cal-marks[data-n="1"] img { max-width: 52px; }
.cal-pop {
  position: absolute; z-index: 8; left: 50%; top: 100%;
  transform: translateX(-50%);
  width: min(240px, 70vw);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid #d7e7f7;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(17,57,106,.18);
  padding: 10px;
  margin-top: 6px;
}
.cal-pop::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -14px;
  height: 14px;
}
.cal-month.is-prev .cal-cell .cal-pop,
.cal-month.is-next .cal-cell .cal-pop {
  top: 0;
  bottom: auto;
  width: min(250px, 32vw);
  margin-top: 0;
  margin-bottom: 0;
}
.cal-month.is-prev .cal-cell .cal-pop {
  left: 100%;
  transform: none;
  margin-left: 8px;
}
.cal-month.is-next .cal-cell .cal-pop {
  left: auto;
  right: 100%;
  transform: none;
  margin-right: 8px;
}
.cal-month.is-prev .cal-cell .cal-pop::before {
  top: 8px;
  bottom: 8px;
  left: -16px;
  right: auto;
  width: 16px;
  height: auto;
}
.cal-month.is-next .cal-cell .cal-pop::before {
  top: 8px;
  bottom: 8px;
  right: -16px;
  left: auto;
  width: 16px;
  height: auto;
}
.cal-pop__date { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cal-pop__close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef4fa;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 21, 56, .45);
  cursor: pointer;
}
.cal-pop--sheet {
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  top: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: 440px;
  margin: 0 auto !important;
  transform: none !important;
  z-index: 80;
  max-height: min(62vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14px 14px;
  border-radius: 16px;
}
.cal-pop--sheet::before { display: none; }
.cal-pop--sheet .cal-pop__close { display: grid; place-items: center; }
.cal-pop--sheet .cal-pop__date { padding-right: 40px; font-size: 14px; }
.cal-pop--sheet .cal-pop__item { padding: 10px; }
body.cal-sheet-open { overflow: hidden; }
.cal-pop__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 8px;
  border-radius: 8px;
  color: inherit;
  align-items: start;
}
.cal-pop__item .tour-logo { grid-row: 1 / span 3; }
.cal-pop__item:hover { background: #f4f9ff; }
.cal-pop__item strong { color: var(--ink); font-size: 14px; }

.tour-card h3 a { color: inherit; }
.tour-hero { display: grid; gap: 20px; max-width: 760px; }
.tour-meta { display: grid; gap: 10px; margin: 0; }
.tour-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.tour-meta dt { color: var(--muted); font-size: 13px; }
.tour-meta dd { margin: 0; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.account-page { max-width: none; }
.account-form { max-width: 520px; }
.account-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cab-grid > :last-child { grid-column: 1 / -1; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 12px;
}
.check {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.check input { width: auto; }
.entry-list { display: grid; gap: 12px; }
.entry-card {
  border: 1px solid #e8eef5; border-radius: 12px; padding: 14px;
  transition: box-shadow .2s ease;
}
.entry-card:hover { box-shadow: 0 10px 22px rgba(17,57,106,.08); }
.entry-card h3 { margin: 8px 0 4px; font-size: 17px; }
.status-entry-pending { color: #14629a; }
.status-entry-approved { color: #1a7a3c; }
.status-entry-waitlist { color: #9a6b14; }
.status-entry-rejected, .status-entry-withdrawn { color: #666; }

.rcf-card {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #e8eef5;
  border-radius: 16px;
  background: #f8fbff;
}
.rcf-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rcf-card h2 { margin: 0 0 4px; font-size: 20px; }
.rcf-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.rcf-card input[type="search"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7e3ee;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.rcf-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.rcf-tiles--form { margin: 4px 0 8px; }
.rcf-tile {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.rcf-tile span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rcf-tile strong { display: block; margin-top: 4px; font-size: 28px; color: var(--navy); letter-spacing: -.03em; }
.rcf-tile em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; }
.rcf-card--pass { padding: 20px; }
.rcf-pass__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rcf-pass__head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.rcf-eng { margin: 4px 0 0; color: var(--muted); }
.rcf-compact { margin-bottom: 4px; }
.rcf-tiles--compact { margin: 0 0 8px; }
.rcf-tiles--compact .rcf-tile { padding: 10px 8px; }
.rcf-tiles--compact .rcf-tile strong { font-size: 24px; }
.rcf-compact__meta { margin: 0; color: var(--muted); font-size: 13px; }
.rcf-linked:has(.rcf-more[open]) .rcf-compact { display: none; }
.rcf-more {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.rcf-more__body { order: 1; }
.rcf-more__sum { order: 2; }
.rcf-more__sum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px auto 0;
  padding: 4px 12px 2px;
  width: max-content;
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rcf-more__sum::-webkit-details-marker { display: none; }
.rcf-more__sum::marker { content: ''; }
.rcf-more__arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.rcf-more__arrow svg { width: 18px; height: 18px; }
.rcf-more__sum:hover .rcf-more__arrow,
.rcf-more__sum:focus-visible .rcf-more__arrow {
  border-color: #90c4ff;
  background: #f4f9ff;
}
.rcf-more[open] .rcf-more__arrow { transform: rotate(180deg); }
.rcf-more__text--close { display: none; }
.rcf-more[open] > .rcf-more__sum .rcf-more__text--open { display: none; }
.rcf-more[open] > .rcf-more__sum .rcf-more__text--close { display: inline; }
.rcf-more__body { margin-top: 12px; }
.rcf-pass__grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 12px;
}
.rcf-panel {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.rcf-panel h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.rcf-panel .rcf-tiles { margin: 0; }
.rcf-dl { display: grid; gap: 8px; margin: 0; }
.rcf-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.rcf-dl dt { color: var(--muted); margin: 0; }
.rcf-dl dd { margin: 0; }
.rcf-dl--wide div { grid-template-columns: 140px minmax(0, 1fr); }
.rcf-spark { display: block; width: 100%; height: 200px; }
.rcf-chart { position: relative; }
.rcf-chart .rcf-spark { cursor: crosshair; overflow: visible; }
.rcf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.rcf-legend__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rcf-c) 50%, #d7e3ee);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.rcf-legend__btn i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--rcf-c);
}
.rcf-legend__btn i.is-dash {
  background: repeating-linear-gradient(90deg, var(--rcf-c) 0 5px, transparent 5px 8px);
}
.rcf-legend__btn.is-on {
  background: color-mix(in srgb, var(--rcf-c) 14%, #fff);
  border-color: var(--rcf-c);
}
.rcf-legend__btn:not(.is-on) { opacity: .42; }
.rcf-spark__rule { stroke: #11396a; stroke-width: 1.2; stroke-dasharray: 3 3; }
.rcf-spark__dot { fill: #0e59a0; stroke: #fff; stroke-width: 2; }
.rcf-spark__axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.rcf-tip {
  position: absolute;
  z-index: 8;
  width: min(340px, calc(100% - 16px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d7e3ee;
  box-shadow: 0 16px 32px rgba(17, 57, 106, .16);
  color: #001538;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}
.rcf-tip.is-hold { pointer-events: auto; }
.rcf-tip__date { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rcf-tip__rows { display: grid; gap: 4px; margin: 6px 0 8px; }
.rcf-tip__row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}
.rcf-tip__row i { width: 10px; height: 10px; border-radius: 99px; }
.rcf-tip__row strong { color: var(--navy); }
.rcf-tip__row em { font-style: normal; min-width: 2.2em; text-align: right; }
.rcf-tip__rating { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 8px; }
.rcf-tip__rating strong { font-size: 22px; color: var(--navy); }
.rcf-tip__delta { font-weight: 800; }
.rcf-tip__delta.is-up { color: #1a7a3c; }
.rcf-tip__delta.is-down { color: #9b1c1c; }
.rcf-tip h4 { margin: 10px 0 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.rcf-tip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rcf-tip li { display: grid; gap: 2px; }
.rcf-tip a { color: var(--blue); }
.rcf-tip__meta { color: var(--muted); font-size: 12px; }
.rcf-tip__empty { margin: 0; color: var(--muted); }
.rcf-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rcf-lists .rcf-panel { margin: 0; }
.rcf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rcf-links li { font-size: 14px; line-height: 1.35; }
.rcf-links span { display: block; }
.rcf-ids { margin: 0 0 8px; font-size: 14px; }
.rcf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.rcf-hits {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  max-height: 280px;
  overflow: auto;
}
.rcf-hit {
  display: grid;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8eef5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.rcf-hit:hover, .rcf-hit:focus-visible { border-color: #90c4ff; background: #f4f9ff; }
.rcf-msg { min-height: 1.2em; }
.rcf-msg.is-err { color: #9b1c1c; }
.rcf-preview { margin-top: 14px; }
.rcf-preview__name { margin: 0 0 12px; }
.rcf-preview__name strong { display: block; font-size: 20px; }
.rcf-board { margin-top: 28px; }
.rcf-sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.rcf-sorts a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d7e3ee;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.rcf-sorts a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.play-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.play-list li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #e8eef5; }
.play-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.play-days li { display: grid; gap: 2px; }
.play-cal { margin: 8px 0 28px; }
.play-cal > h2 { margin: 0 0 4px; }
.play-inline, .play-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.play-challenge { display: grid; gap: 10px; }
.play-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px); gap: 22px; align-items: start; }
.board-hero { display: grid; gap: 10px; }
.board-player { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.board-clock {
  min-width: 92px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
}
.board-clock.is-run { color: #0e59a0; }
.board-clock.is-low { color: #9b1c1c; }
.chess-board-wrap { position: relative; max-width: 560px; }
.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 57, 106, .12);
  border: 1px solid #d7e3ee;
}
.chess-board .sq {
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  font-size: clamp(22px, 4.6vw, 42px);
  line-height: 1;
  display: grid;
  place-items: center;
}
.chess-board .sq.is-light { background: #f3e6c8; }
.chess-board .sq.is-dark { background: #b58863; }
.chess-board .sq.is-sel { outline: 3px solid #c9a24a; outline-offset: -3px; }
.chess-board .sq.is-last { box-shadow: inset 0 0 0 3px rgba(14, 89, 160, .45); }
.chess-board .sq.is-go::after {
  content: '';
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: rgba(17, 57, 106, .28);
}
.chess-board .pc { pointer-events: none; }
.promo-pop[hidden] { display: none !important; }
.promo-pop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  z-index: 4;
}
.play-status { font-weight: 700; }
.move-list { columns: 2; margin: 0; padding-left: 22px; font-variant-numeric: tabular-nums; }
.pgn-box { white-space: pre-wrap; font-size: 12px; }
.cross-table th, .cross-table td { text-align: center; }
.play-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.play-live { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 340px); gap: 18px; align-items: start; margin: 22px 0; }
.seek-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #eef6ff;
  border: 1px solid #cfe3f8;
}
.tv-strip { margin: 18px 0; }
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.tv-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d7e3ee;
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.tv-card:hover { border-color: #90c4ff; box-shadow: 0 10px 24px rgba(17, 57, 106, .08); }
.tv-card__meta { display: grid; gap: 2px; }
.tv-card__meta strong { font-size: 13px; line-height: 1.3; }
.tv-mini {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d7e3ee;
}
.tv-mini span {
  display: grid;
  place-items: center;
  font-size: 11px;
  line-height: 1;
}
.tv-mini span.is-light { background: #f3e6c8; }
.tv-mini span.is-dark { background: #b58863; }
.play-chat {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d7e3ee;
  border-radius: 16px;
  background: #fff;
  min-height: 280px;
}
.play-chat h3 { margin: 0; }
.play-chat__log {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.play-chat__item { display: grid; gap: 2px; font-size: 14px; }
.play-chat__item b { color: var(--navy); }
.play-chat__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.play-chat__form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e3ee;
  border-radius: 10px;
}
.opp-on { color: #0b7a3b; font-weight: 700; font-size: 12px; }
.play-seek { margin-top: 8px; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 0;
}
.player-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin: 0 0 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,251,255,.94)),
    repeating-conic-gradient(#e8eef5 0% 25%, #f8fbff 0% 50%) 0 0 / 28px 28px;
  border: 1px solid #d7e3ee;
  box-shadow: 0 18px 40px rgba(17, 57, 106, .08);
}
.player-hero--locked { opacity: .92; }
.player-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #2b6cb0, #11396a);
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px #c9a24a;
  background-size: cover;
  background-position: center;
}
.player-avatar.has-photo span { display: none; }
.player-eng { margin: 4px 0 0; color: var(--muted); }
.player-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.player-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e3ee;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.player-badge { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }
.player-badge--you { background: #c9a24a !important; border-color: #c9a24a !important; color: #111 !important; }
.player-ids { margin: 10px 0 0; font-size: 14px; }
.player-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rcf-pass__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.player-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.rcf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.rcf-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.rcf-table th, .rcf-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e8eef5; vertical-align: top; }
.rcf-table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.rate-board { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; }
.rate-board li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f8;
  font-size: 14px;
}
.rate-board b { color: var(--navy); font-variant-numeric: tabular-nums; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: tilda-up .65s ease var(--d, 0ms) both;
}
img.lazy { opacity: 0; transition: opacity .5s ease; }
img.lazy.is-in { opacity: 1; }

@keyframes tilda-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tilda-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes wave-drift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.06) translateX(-1.5%); }
}
@keyframes piece-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(18px, -24px) rotate(10deg); }
  50% { transform: translate(-12px, 16px) rotate(-8deg); }
  75% { transform: translate(22px, 8px) rotate(6deg); }
}
@keyframes logo-in {
  from { opacity: 0; transform: rotate(-170deg) scale(.45); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-play {
  0%, 100% { transform: rotate(0) scale(1); }
  30% { transform: rotate(-16deg) scale(1.07); }
  62% { transform: rotate(12deg) scale(1.03); }
}
@keyframes knight-hop {
  0% { left: 0; transform: translateY(0); }
  7% { transform: translateY(-16px); }
  14% { left: 12.5%; transform: translateY(0); }
  21% { transform: translateY(-16px); }
  28% { left: 25%; transform: translateY(0); }
  35% { transform: translateY(-16px); }
  42% { left: 37.5%; transform: translateY(0); }
  49% { transform: translateY(-16px); }
  56% { left: 50%; transform: translateY(0); }
  63% { transform: translateY(-16px); }
  70% { left: 62.5%; transform: translateY(0); }
  77% { transform: translateY(-16px); }
  84% { left: 75%; transform: translateY(0); }
  91% { transform: translateY(-16px); }
  100% { left: 87.5%; transform: translateY(0); }
}
@keyframes king-bob {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  70% { transform: translateY(1px); }
}
@keyframes knight-jump {
  0% { opacity: 1; transform: translate(0, 0); }
  45% { opacity: 1; transform: translate(22px, 0); }
  100% { opacity: 0; transform: translate(22px, -44px); }
}
@keyframes knight-capture {
  0% { opacity: 0; transform: translate(-16px, 16px) rotate(-20deg); }
  55% { opacity: .8; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(10px, -12px); }
}
@keyframes piece-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes square-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes mate-fall {
  from { transform: translateX(-50%) translateY(-20px) rotate(0); opacity: 0; }
  to { transform: translateX(-50%) translateY(0) rotate(-18deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .hero-logo img, .hero-kicker, .hero-name, .hero-crown, .hero-title, .hero-nav, .hero-wave,
  .reveal, .fx-piece, .chess-strip__knight, .chess-banner__piece, .piece-row span,
  .crown-rule img, .mate-king, .mate-queen, .mate-knight, .hero-gate__king {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .chess-fx, .cursor-knight { display: none; }
  .news-item:hover::after, .tour-card:hover::before { animation: none; opacity: 0; }
  .hero-link .hero-king { opacity: 0; }
  .hero-link.is-active .hero-king,
  .hero-link:hover .hero-king { opacity: 1; }
  .cal-track, .cal-month, .cal-nav, .cal-arrow { transition: none; }
  .cal-nav, .cal-arrow { animation: none !important; }
  .cal-arrow { transform: translateY(-50%); opacity: 1; }
  .cal-marks img, .cal-marks__more { transition: none; }
  .tour-sheet__panel { animation: none; }
}

@media (max-width: 1360px) {
  .hero-sep { display: none; }
}
@media (max-width: 1240px) {
  html, body {
    background: #fff;
    background-image: none;
  }
  .rail { display: none; }
  .stage { margin-left: 0; width: 100%; }
  .hero-band {
    height: auto;
    min-height: 220px;
    aspect-ratio: auto;
    overflow: visible;
    display: grid;
    justify-items: start;
    align-content: start;
    padding: 18px max(176px, calc(16px + env(safe-area-inset-right))) 20px max(16px, env(safe-area-inset-left));
    background: #fff;
  }
  .hero-wave-clip {
    position: relative;
    inset: auto;
    height: 92px;
    width: calc(100% + 32px);
    margin: 12px -16px -20px;
    order: 20;
    border-radius: 0;
  }
  .hero-wave-clip::after {
    background: linear-gradient(180deg, #fff 0 18%, transparent 55%);
  }
  .hero-logo, .hero-title, .hero-kicker, .hero-name, .hero-crown {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-width: 100%;
  }
  .hero-title {
    width: 100%;
    max-width: calc(100% - 4px);
    padding: 0;
    background: #fff;
  }
  .hero-logo { margin-bottom: 8px; width: 88px; }
  .hero-logo img { width: 88px; height: 88px; max-width: 88px; }
  .hero-kicker { width: 100%; font-size: 12px; }
  .hero-name {
    width: 100%;
    font-size: clamp(18px, 5.4vw, 26px);
    -webkit-text-stroke: .25px currentColor;
  }
  .hero-crown { width: min(140px, 42vw); margin-top: 6px; }
  .burger { display: flex; }
  .hero-gate {
    right: max(60px, calc(12px + env(safe-area-inset-right) + 48px));
    top: max(10px, env(safe-area-inset-top));
    gap: 6px;
  }
  .hero-gate,
  .hero-gate__main {
    padding: 3px 10px 3px 3px;
    border-radius: 14px;
  }
  .hero-gate__icon,
  .hero-gate__exit .hero-gate__icon { width: 36px; height: 36px; flex-basis: 36px; }
  .hero-gate__copy strong { font-size: 12px; }
  .hero-gate__copy em { display: none; }
  .hero-gate__exit {
    padding: 3px;
    width: 42px;
    justify-content: center;
  }
  .hero-gate__exit > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.is-member .hero-band {
    padding-right: max(220px, calc(16px + env(safe-area-inset-right)));
  }
  .hero-nav {
    display: none;
    position: fixed;
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    width: min(320px, calc(100vw - 24px));
    top: max(70px, calc(12px + env(safe-area-inset-top) + 52px));
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    box-shadow: 0 16px 40px rgba(17, 57, 106, .16);
    border: 1px solid #e8eef5;
    z-index: 20;
    animation: none;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  .hero-nav.is-open { display: flex; }
  .hero-sep { display: none; }
  .hero-link--account, .hero-sep--account { display: none !important; }
  .hero-link--search, .hero-sep--search { display: flex !important; }
  .hero-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px 16px;
    font-size: 16px;
  }
  .hero-link i { display: none; }
  .hero-king { margin: 0; }
  .hero-link.is-active .hero-king,
  .hero-link:hover .hero-king,
  .hero-link:focus-visible .hero-king {
    opacity: 1;
    transform: none;
  }
  .columns { flex-direction: column; }
  .col-main, .col-side { flex: 1 1 100%; max-width: 100%; }
  .article { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .tour-card { grid-template-columns: minmax(80px, 90px) minmax(0, 1fr); }
  .tour-card > :last-child { grid-column: 2; }
  .cab-grid { grid-template-columns: 1fr; }
  .play-layout, .play-grid, .play-strip, .play-live { grid-template-columns: 1fr; }
  .player-hero, .player-grid { grid-template-columns: 1fr; }
  .player-avatar { width: 112px; height: 112px; font-size: 32px; }
  .player-tiles { grid-template-columns: 1fr; }
  .rcf-tiles { grid-template-columns: 1fr; }
  .rcf-tiles--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rcf-tiles--compact .rcf-tile strong { font-size: 20px; }
  .rcf-tile strong { font-size: 24px; }
  .rcf-pass__grid, .rcf-lists { grid-template-columns: 1fr; }
  .rcf-dl div, .rcf-dl--wide div { grid-template-columns: 1fr; gap: 2px; }
  .tour-meta div { grid-template-columns: 1fr; }
  .cal-wrap { --cal-slot: 78%; }
  .cal-legend span { display: none; }
  .cal-month { padding: 6px 6px 0; }
  .cal-arrow { width: 42px; height: 42px; }
  .cal-arrow svg { width: 20px; height: 20px; }
}

@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; padding: 16px 0; margin: 0; }
  .news-item__img { width: 100%; }
  .president { grid-template-columns: 1fr; }
  .fed-intro { grid-template-columns: 1fr; }
  .fed-facts { grid-template-columns: 1fr; }
  .fed-row--officers { grid-template-columns: 1fr; width: 100%; }
  .fed-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fed-boards { grid-template-columns: 1fr; }
  .fed-board:nth-child(odd) { background: #f7fbff; }
  .fed-board:nth-child(even) { background: #dce8f6; }
  .fed-docs .doc-list { grid-template-columns: 1fr; }
  .fed-node--king, .fed-node--rook { width: 100%; }
  .club-list { grid-template-columns: 1fr; }
  .bio-sheet__top { grid-template-columns: 72px minmax(0, 1fr); }
  .bio-sheet__photo { width: 72px; height: 72px; }
  .fed-stem {
    display: block;
    width: 1px;
    height: 16px;
    margin: 2px auto 0;
    background: var(--line);
  }
  .fed-stem i, .fed-stem b { display: none; }
  .foot-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .copy { font-size: 11px; }
  .chess-banner { font-size: 11px; gap: 8px; }
  .fx-piece { opacity: .7; }
}

@media (max-width: 560px) {
  .tour-card { grid-template-columns: 1fr; }
  .tour-card > :last-child { grid-column: 1; }
  .page { padding: 24px 16px 40px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .search { max-width: 100%; margin-left: 0; }
  .chess-fx { display: none; }
  .hero-name { font-size: clamp(18px, 6vw, 24px); }
  .cal-wrap { --cal-slot: 88%; }
  .cal-toolbar { grid-template-columns: 40px 1fr 40px; gap: 8px; padding: 12px 10px 4px; }
  .cal-legend h2 { font-size: 18px; }
  .cal-cell { min-height: 32px; }
  .cal-day { font-size: 11px; }
  .cal-day__num { min-width: 13px; height: 13px; line-height: 13px; font-size: 8px; top: 2px; left: 2px; }
  .cal-marks { padding: 18% 3% 5%; }
  .cal-marks img, .cal-marks__more { border-width: 1px; }
  .cal-arrow { width: 38px; height: 38px; }
  .tour-sheet__top { grid-template-columns: 72px minmax(0, 1fr); }
  .tour-sheet__logo { width: 72px; height: 72px; }
  .tour-sheet__head h2 { font-size: 18px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-band { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .hero-logo { width: 64px; margin-bottom: 4px; }
  .hero-logo img { width: 64px; height: 64px; max-width: 64px; }
  .hero-kicker { font-size: 11px; }
  .hero-name { font-size: clamp(16px, 4.2vw, 22px); }
  .hero-crown { width: 110px; margin-top: 2px; }
}

@media (hover: none) {
  .cursor-knight { display: none !important; }
  .news-item:hover { background: transparent; }
  .news-item:hover .news-item__img { transform: none; }
}

.search--wide { max-width: 100%; margin: 0 0 24px; }
.search-group { margin: 22px 0; }
.search-group h2 { margin: 0 0 10px; font-size: 16px; }
.search-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.search-group li { border-bottom: 1px solid #eef2f6; padding-bottom: 10px; }
.search-group a { font-weight: 700; color: var(--navy); }
.search-group span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-group p { margin: 4px 0 0; font-size: 14px; color: #444; }

.club-table-wrap { overflow-x: auto; }
.club-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.club-table th, .club-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid #e6eef6; }
.club-table th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.pres-nav { margin-bottom: 16px; }
.pres-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}
.pres-photo {
  width: 160px; height: 160px; border-radius: 18px; overflow: hidden;
  background: #11396a; color: #f3d48a; display: grid; place-items: center;
  font-size: 42px; font-weight: 700;
}
.pres-photo img { width: 100%; height: 100%; object-fit: cover; }
.pres-kicker { margin: 0 0 6px; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--blue); font-weight: 800; }
.pres-lead { margin: 0; font-size: 16px; line-height: 1.5; color: #333; }
.pres-grid { display: grid; gap: 16px; }
.pres-block { padding: 16px 18px; border: 1px solid #e6eef6; border-radius: 14px; background: #fbfcff; }
.pres-block h2 { margin: 0 0 10px; font-size: 16px; }
.pres-block ul { margin: 0; padding-left: 18px; }
.pres-block li { margin: 0 0 8px; line-height: 1.5; }
.pres-block p { margin: 0; line-height: 1.5; }

.note-list { display: grid; gap: 16px; margin-top: 8px; }
.note-card { padding: 16px 18px; border: 1px solid #e6eef6; border-radius: 14px; background: #fff; }
.note-card h3 { margin: 4px 0 8px; }

.bday-box .bday-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.bday-box li { display: grid; gap: 2px; }
.bday-box span { color: var(--muted); font-size: 13px; }
.bday-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.bday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.bday-dow { font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; }
.bday-cell {
  min-height: 92px;
  border: 1px solid #e6eef6;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}
.bday-cell.is-empty { background: transparent; border-color: transparent; }
.bday-cell.is-today { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.bday-cell.has-people { background: #f4f8ff; }
.bday-num { display: block; font-size: 12px; font-weight: 800; color: var(--navy); }
.bday-who { display: block; margin-top: 4px; font-size: 11px; line-height: 1.25; }
.bday-who i { display: block; font-style: normal; color: var(--muted); }

.social-rail {
  position: fixed;
  right: 10px;
  top: 38%;
  z-index: 12;
  display: grid;
  gap: 8px;
}
.social-rail__btn {
  width: 54px;
  min-height: 118px;
  padding: 10px 6px;
  border-radius: 14px;
  color: #fff !important;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  box-shadow: 0 10px 22px rgba(17,57,106,.18);
}
.social-rail__btn span { font-weight: 800; letter-spacing: .08em; }
.social-rail__btn strong { font-size: 12px; font-weight: 700; }
.social-rail__btn--vk { background: #2787f5; }
.social-rail__btn--tg { background: #229ed9; }
.social-rail__btn--max { background: #11396a; }
.social-rail__btn:hover { filter: brightness(1.06); }

@media (max-width: 1240px) {
  .social-rail { display: none; }
  .pres-hero { grid-template-columns: 1fr; }
  .bday-cell { min-height: 64px; }
}

@media (max-width: 900px) {
  .club-table th:nth-child(2), .club-table td:nth-child(2) { display: none; }
  .fed-facts { grid-template-columns: 1fr; }
}
