@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Blue Winter";
  src: url("/fonts/BlueWinter.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff8e6;
  --bg-soft: #f6efd2;
  --surface: #fffdf4;
  --text: #332606;
  --muted: #6a5824;
  --primary: #ffd123;
  --primary-bright: #ffd123;
  --primary-dark: #8a6a10;
  --primary-rgb: 255, 209, 35;
  --primary-bright-rgb: 255, 209, 35;
  --line: rgba(51, 38, 6, 0.12);
  --nav-height: 4.6rem;
  --font: "Nunito", system-ui, sans-serif;
  --display: "Unbounded", "Nunito", sans-serif;
  --hero-ink: #332606;
  --shadow: 0 18px 40px -24px rgba(51, 38, 6, 0.45);
  --radius: 22px;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  transform: translateZ(0);
  background: #fffaf1;
}

.site-main {
  flex: 1 0 auto;
  position: relative;
  z-index: 0;
}

.site-nav {
  min-height: var(--nav-height);
  background: #fffaf1;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}

.site-nav-inner {
  max-width: 1200px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit !important;
  line-height: 1;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: inherit !important;
  text-decoration: none;
}

.site-brand-mark {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(2.55rem, 6.4vw, 3.55rem);
  max-width: min(62vw, 16rem);
  object-fit: contain;
}

.site-tabs {
  gap: 0.15rem;
}

.site-nav-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

@media (min-width: 992px) {
  .site-nav > .site-nav-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-nav > .site-nav-inner > .site-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .site-nav .navbar-collapse {
    grid-column: 2;
    grid-row: 1;
    position: static;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    justify-content: center;
  }

  .site-nav .site-tabs {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-nav-end {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }
}

.site-nav .nav-link {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.55rem 0.7rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--primary);
}

.site-nav .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.site-logout {
  border: 0;
  background: transparent;
  text-decoration: none;
}

.site-logout:hover {
  color: var(--primary);
}

.navbar-light .navbar-toggler {
  border-color: var(--line);
}

.hero {
  --hero-image: url("/images/hero.jpg");
  --hero-text-x: 18%;
  --hero-text-y: 28%;
  --hero-btn-x: 18%;
  --hero-btn-y: 58%;
  --hero-text-x-mobile: 50%;
  --hero-text-y-mobile: 18%;
  --hero-btn-x-mobile: 50%;
  --hero-btn-y-mobile: 78%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  padding: 3rem 1.25rem;
  background-color: #fff6dc;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 241, 0.18) 0%, rgba(255, 250, 241, 0.55) 100%),
    var(--hero-image),
    radial-gradient(ellipse at 50% 42%, #ffd123 0%, #ffe9a3 40%, #fffaf1 74%);
  background-size: cover;
  background-position: center;
}

.hero:not(.hero-editor) {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero:not(.hero-editor):has(.hero-pcb) {
  background-color: #f2e600;
  background-image: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding-bottom: 4.75rem;
}

.hero-pcb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  contain: layout paint;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content,
.hero:not(.hero-editor):has(.hero-pcb) .community-points,
.hero:not(.hero-editor):has(.hero-pcb) > .edit-only {
  position: relative;
  z-index: 1;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content {
  isolation: isolate;
  width: min(54rem, 94%);
  min-width: 0;
  max-width: min(54rem, 94%);
  margin: 0 auto;
}

.hero:not(.hero-editor):has(.hero-pcb)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  --hero-wash: 100%;
  --hero-fade: 5.5rem;
  width: min(100%, var(--hero-wash));
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 34% at 50% 34%, rgba(255, 209, 35, 0.16) 0%, rgba(255, 232, 150, 0.06) 42%, transparent 70%),
    linear-gradient(180deg, #fffaf1 0%, #fff6d4 40%, #fffaf1 100%);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--hero-fade),
    #000 calc(100% - var(--hero-fade)),
    transparent 100%
  );
}

@media (min-width: 576px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(540px - 1.5rem);
  }
}

@media (min-width: 768px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(720px - 1.5rem);
  }
}

@media (min-width: 992px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(960px - 1.5rem);
  }
}

@media (min-width: 1200px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(1140px - 1.5rem);
  }
}

@media (min-width: 1400px) {
  .hero:not(.hero-editor):has(.hero-pcb)::after {
    --hero-wash: calc(1320px - 1.5rem);
  }
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-content::before {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-heading {
  flex-direction: column;
  gap: 0;
  align-self: stretch;
  width: 100%;
  transform: translateY(-1rem);
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-heading::before {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-community {
  width: 100%;
  padding-bottom: 0;
}

.hero-community-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Unbounded", "Nunito", sans-serif;
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.03em;
  text-anchor: middle;
}

.hero-community-shadow {
  fill: rgba(20, 12, 0, 0.28);
  stroke: none;
}

.hero-community-stroke {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hero-community-glint {
  fill: none;
  stroke: #fff6c4;
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 18 120 8 180 24 150 10 210;
  animation: hero-outline-glint 14s linear infinite;
}

.hero-community-fill {
  fill: #111;
  stroke: none;
}

@keyframes hero-outline-glint {
  to {
    stroke-dashoffset: -720;
  }
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-community::before,
.hero:not(.hero-editor):has(.hero-pcb) .hero-community::after {
  content: none;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-quotes {
  width: 100%;
}

.hero:not(.hero-editor):has(.hero-pcb) .hero-quote {
  width: min(34rem, 100%);
  margin-top: 0.95rem;
  margin-left: auto;
  margin-right: auto;
  max-width: min(34rem, 100%);
  color: #6a5018;
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
  letter-spacing: 0.01em;
  text-align: center;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point {
  padding: 1.15rem 1rem 1.2rem;
  background: rgba(255, 253, 246, 0.82);
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point-icon {
  width: clamp(5.4rem, 54%, 11rem);
  max-width: calc(100% - 1.4rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.85rem;
  padding: 0.7rem;
  box-sizing: content-box;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 35, 0.34) 0%, rgba(255, 209, 35, 0.08) 58%, transparent 74%);
  opacity: 1;
  transition: background 0.22s ease;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point:hover {
  background: #fffef9;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point:hover .community-point-icon {
  background: radial-gradient(circle, rgba(255, 209, 35, 0.62) 0%, rgba(255, 209, 35, 0.18) 58%, transparent 76%);
}

.hero:not(.hero-editor):has(.hero-pcb) .community-point strong {
  color: #332606;
  letter-spacing: -0.01em;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-points {
  isolation: isolate;
  width: min(60rem, 80%);
  min-width: 0;
  margin: 0.5rem auto 0;
}

.hero:not(.hero-editor):has(.hero-pcb) .community-points::before {
  content: none;
}

.hero-content {
  position: absolute;
  left: var(--hero-text-x);
  top: var(--hero-text-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(720px, calc(100% - 2.5rem));
  text-align: center;
}

.hero:not(.hero-editor) .hero-content {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 auto;
}

.hero-cta {
  position: absolute;
  left: var(--hero-btn-x);
  top: var(--hero-btn-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.22em;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.hero-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: -1;
  width: 190%;
  height: 220%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 46% at 50% 50%,
      rgba(var(--primary-bright-rgb), 0.95) 0%,
      rgba(var(--primary-bright-rgb), 0.55) 28%,
      rgba(var(--primary-rgb), 0.28) 52%,
      transparent 76%);
  filter: blur(8px);
}

.hero-logo {
  display: block;
  height: 2.15em;
  width: auto;
  flex-shrink: 0;
}

.hero-title {
  font-family: "Blue Winter", var(--display);
  font-weight: normal;
  color: var(--primary);
  width: max-content;
  font-size: 1em;
  line-height: 0.95;
  margin: 0 0 1rem;
  text-align: left;
  text-shadow: 0 2px 16px rgba(237, 180, 57, 0.28);
}

.hero:not(.hero-editor) .hero-title {
  margin-bottom: 0;
  text-shadow: none;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title-gamedev {
  color: var(--primary-bright);
  -webkit-text-stroke: 0.07em var(--hero-ink);
  paint-order: stroke fill;
}

.hero-title-city {
  color: var(--hero-ink);
  font-size: 0.62em;
}

.hero-community {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-community-line {
  display: block;
  white-space: nowrap;
  color: var(--hero-ink);
  font-size: clamp(1.2rem, 3.5vw, 2.35rem);
  text-shadow:
    0 0 16px rgba(255, 250, 241, 0.95),
    0 1px 0 rgba(255, 250, 241, 0.8);
}

.hero-community-accent {
  margin-top: 0.08em;
  color: var(--primary-bright);
  font-size: clamp(1.55rem, 4.8vw, 3.25rem);
  -webkit-text-stroke: 0.04em var(--hero-ink);
  paint-order: stroke fill;
  text-shadow: 0 0.06em 0 rgba(255, 250, 241, 0.28);
}

.hero-quote {
  margin: 0.85rem 0 0;
  max-width: min(36rem, 100%);
  min-height: 2.8em;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
  color: var(--hero-ink);
  text-align: center;
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-quote.is-fading {
  opacity: 0;
}

.hero-more {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  margin: 0;
  padding: 0.2rem 0.6rem 0;
  border: 0;
  background: none;
  color: var(--hero-ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
}

.hero-more-arrow {
  width: 1.45rem;
  height: 1.45rem;
  animation: hero-more-bob 1.6s ease-in-out infinite;
}

@keyframes hero-more-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.28rem); }
}

body.is-editing .hero-more {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-quote {
    transition: none;
  }

  .hero-community-glint {
    animation: none;
    stroke: none;
  }

  .hero-more-arrow {
    animation: none;
  }
}

html.is-low-power .hero-community-glint,
html.is-low-power .hero-more-arrow {
  animation: none;
}

html.is-low-power .hero-community-glint {
  stroke: none;
}

@media (update: slow) {
  .hero-community-glint {
    animation: none;
    stroke: none;
  }

  .hero-more-arrow {
    animation: none;
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(255, 250, 241, 0.8);
}

.btn-register,
.btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
  font-weight: 800;
  font-size: 1.05rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  animation: pulse-scale 1.6s ease-in-out infinite;
}

.btn-register:hover,
.btn-register:focus,
.btn-support:hover,
.btn-support:focus {
  background: var(--primary);
  color: var(--hero-ink);
  transform: scale(1.08);
  animation: none;
}

.btn-support svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex-shrink: 0;
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.page-shell,
.home-section {
  padding: 4.5rem 0;
  background: var(--bg);
  contain: layout paint;
}

.page-shell:has(.member-card) {
  contain: layout;
}

.home-section-alt {
  background: var(--bg-soft);
}

.section-title,
.page-title {
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-title {
  margin-bottom: 1rem;
}

.page-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.community-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  width: 100%;
  margin-top: 2rem;
}

.community-point {
  position: relative;
  padding: 1.15rem 1rem 1.2rem;
  background: rgba(255, 253, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 10px 24px rgba(166, 124, 26, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.community-point:hover {
  transform: translateY(-6px);
  background: #fffef9;
  border-color: rgba(237, 180, 57, 0.95);
  box-shadow:
    0 18px 34px rgba(237, 180, 57, 0.24),
    0 0 22px rgba(255, 209, 35, 0.28);
}

.community-point-icon {
  display: block;
  width: clamp(5.4rem, 54%, 11rem);
  max-width: calc(100% - 1.4rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 0.85rem;
  padding: 0.7rem;
  box-sizing: content-box;
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .community-point,
  .community-point-icon {
    transition: none;
  }

  .community-point:hover {
    transform: none;
  }
}

.community-point p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.community-point strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-align: center;
}

.home-carousel {
  position: relative;
  width: 100%;
  min-height: 26rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.home-carousel-track {
  position: relative;
  width: 100%;
  height: 22rem;
}

.home-card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(100% - 7rem);
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
  overflow: hidden;
  cursor: pointer;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.home-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 35, 0.22), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.home-card:hover::before {
  left: 100%;
}

.home-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(237, 180, 57, 0.22);
}

.home-carousel .home-card.is-active,
.home-carousel .home-card.is-neighbor {
  visibility: visible;
  pointer-events: auto;
}

.home-carousel:has(.home-game-card) {
  min-height: 17rem;
}

.home-carousel:has(.home-game-card) .home-carousel-track {
  height: 15rem;
}

.home-carousel .home-game-card {
  top: 50%;
  bottom: auto;
  width: 19.15rem;
  max-width: calc(100% - 6rem);
  height: auto;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.home-carousel .home-game-card::before,
.home-carousel .home-game-card:hover::before {
  display: none;
}

.home-carousel .home-game-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.home-card-title,
.home-card-team,
.home-card-text,
.home-card-links {
  position: relative;
  z-index: 1;
}

.home-card-team {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.home-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.home-game-card .home-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.home-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.home-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.home-carousel-nav:hover,
.home-carousel-nav:focus-visible {
  border-color: var(--primary);
  color: var(--primary-dark);
  box-shadow: 0 8px 22px rgba(237, 180, 57, 0.28);
}

.home-carousel-nav-prev {
  left: 0.5rem;
}

.home-carousel-nav-next {
  right: 0.5rem;
}

.home-carousel-dots {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 25;
}

.home-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(237, 180, 57, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, border-radius 0.25s ease;
}

.home-carousel-dot.active {
  width: 1.4rem;
  border-radius: 1rem;
  background: var(--primary);
}

.home-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.ghost-btn:hover,
.ghost-btn:focus {
  opacity: 1;
  color: var(--hero-ink);
  border-color: var(--primary-bright);
  background: var(--primary-bright);
}

.home-events {
  display: grid;
  grid-template-columns: minmax(18rem, 28rem) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: stretch;
}

.home-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-event-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 5.4rem;
  margin: 0;
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border: 3px solid var(--primary-bright);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fffefb 0%, #fff6d4 100%);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(237, 180, 57, 0.18);
}

.home-event-option:hover {
  background: linear-gradient(180deg, #fffdf6 0%, #ffeaa8 100%);
  border-color: var(--primary);
}

.home-event-option:has(input:checked) {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 209, 35, 0.72), transparent 62%),
    linear-gradient(165deg, #fffef8 0%, #ffe58a 100%);
  border-color: var(--primary-bright);
  box-shadow: 0 14px 28px rgba(255, 209, 35, 0.42);
}

.home-event-option:focus-within {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

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

.home-event-date {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 6.1rem;
  min-height: 4.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 2px solid rgba(255, 209, 35, 0.95);
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.home-event-name {
  font-size: 1rem;
  font-weight: 700;
}

.home-event-panel {
  display: flex;
  min-width: 0;
}

.home-event-detail {
  position: relative;
  display: none;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(255, 209, 35, 0.55), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff4cc 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.5rem;
  padding: 1.6rem 1.7rem 1.7rem;
  box-shadow:
    0 18px 42px rgba(237, 180, 57, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-event-detail-mark {
  position: absolute;
  top: -0.35rem;
  right: 0.85rem;
  font-family: var(--display);
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(237, 180, 57, 0.28);
  pointer-events: none;
  user-select: none;
}

.home-event-detail-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-event-detail .event-title {
  max-width: calc(100% - 7.5rem);
  margin-bottom: 1.1rem;
  font-size: 1.85rem;
  line-height: 1.2;
}

.home-event-facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  margin: 0;
}

.home-event-facts div {
  min-width: 0;
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 209, 35, 0.7);
  border-radius: 1rem;
}

.home-event-facts dt {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-event-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-event-detail .event-description {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(201, 148, 31, 0.35);
  font-size: 1.08rem;
  line-height: 1.6;
}

.home-event-more {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  flex-shrink: 0;
  margin-top: 0.35rem;
  opacity: 1;
}

.home-events:has(.home-event-list > :nth-child(1) input:checked) .home-event-panel > :nth-child(1),
.home-events:has(.home-event-list > :nth-child(2) input:checked) .home-event-panel > :nth-child(2),
.home-events:has(.home-event-list > :nth-child(3) input:checked) .home-event-panel > :nth-child(3),
.home-events:has(.home-event-list > :nth-child(4) input:checked) .home-event-panel > :nth-child(4),
.home-events:has(.home-event-list > :nth-child(5) input:checked) .home-event-panel > :nth-child(5),
.home-events:has(.home-event-list > :nth-child(6) input:checked) .home-event-panel > :nth-child(6),
.home-events:has(.home-event-list > :nth-child(7) input:checked) .home-event-panel > :nth-child(7),
.home-events:has(.home-event-list > :nth-child(8) input:checked) .home-event-panel > :nth-child(8) {
  display: flex;
  flex: 1;
}

.home-events-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.home-events-all {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .home-events {
    grid-template-columns: 1fr;
  }

  .home-event-detail-body {
    flex: none;
  }

  .home-event-facts {
    grid-template-columns: 1fr;
  }

  .home-event-detail-mark {
    display: none;
  }

  .home-event-detail .event-title {
    max-width: none;
  }
}

.auth-card,
.profile-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.profile-card {
  max-width: 640px;
}

.profile-label {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--muted);
  margin-right: 0.5rem;
}

.profile-saved {
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.skill-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.skill-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--text);
}

.quiet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid rgba(51, 38, 6, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.quiet-btn:hover,
.quiet-btn:focus-visible {
  background: #f8edd4;
  border-color: var(--primary);
}

.auth-input,
.auth-input:focus {
  background: #fffdf6;
  border-color: var(--line);
  color: var(--text);
}

.auth-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-bright-rgb), 0.35);
}

.form-label {
  color: var(--muted);
}

.page-shell a {
  color: var(--primary);
}

.site-footer {
  flex-shrink: 0;
  padding: 0.85rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
}

.site-footer-copy {
  margin: 0;
}

.text-danger {
  color: #c45c2a !important;
}

@media (max-width: 991.98px) {
  .hero:not(.hero-editor) .hero-cta {
    left: var(--hero-btn-x-mobile);
    top: var(--hero-btn-y-mobile);
  }

  .navbar-collapse {
    flex-direction: column;
    align-items: stretch;
  }

  .site-tabs,
  .site-auth {
    width: 100%;
    margin: 0;
  }

  .site-nav .nav-link.active {
    box-shadow: inset 3px 0 0 var(--primary);
  }

  .community-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero:not(.hero-editor):has(.hero-pcb) .hero-content {
    max-width: min(40rem, 78%);
  }

  .hero:not(.hero-editor):has(.hero-pcb) .community-points {
    width: min(60rem, 88%);
  }
}

@media (max-width: 575.98px) {
  .hero:not(.hero-editor):has(.hero-pcb) .hero-content {
    max-width: 100%;
    padding-inline: 1rem;
  }

  .hero:not(.hero-editor):has(.hero-pcb) .community-points {
    width: auto;
    margin-inline: -0.65rem;
  }

  .hero:not(.hero-editor):has(.hero-pcb)::after {
    width: 100%;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  }

  .hero-heading {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
  }

  .home-section {
    padding: 3rem 0;
  }

  .home-carousel {
    min-height: 24rem;
  }

  .home-carousel-track {
    height: 18rem;
  }

  .home-card {
    width: calc(100% - 5.5rem);
    padding: 1.5rem;
  }

  .community-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .community-point,
  .hero:not(.hero-editor):has(.hero-pcb) .community-point {
    min-height: 0;
    min-width: 0;
    padding: 0.7rem 0.4rem 0.8rem;
  }

  .community-point p,
  .community-point strong {
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .community-point-icon,
  .hero:not(.hero-editor):has(.hero-pcb) .community-point-icon {
    width: clamp(3.2rem, 58%, 5rem);
    margin-bottom: 0.45rem;
    padding: 0.3rem;
  }

  .community-point p {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    line-height: 1.35;
  }

  .skill-options {
    grid-template-columns: 1fr;
  }
}

.hero-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-editor-modes {
  display: flex;
  gap: 0.5rem;
}

.hero-editor-mode {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
}

.hero-editor-mode:hover,
.hero-editor-mode.is-active {
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
  border-color: var(--primary-bright);
}

.hero-editor-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-editor-upload .form-control {
  width: auto;
  min-width: 12rem;
}

.hero-editor {
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  container-type: inline-size;
}

.hero-editor.is-mobile {
  width: min(390px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.hero-editor .hero-heading {
  font-size: clamp(1.5rem, 8cqi, 3.4rem);
}

.hero-editor .hero-subtitle {
  font-size: clamp(0.9rem, 3.4cqi, 1.2rem);
}

.hero-editor [data-hero-item] {
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: 2px dashed rgba(var(--primary-rgb), 0.75);
  outline-offset: 8px;
}

.hero-editor [data-hero-item].is-dragging {
  cursor: grabbing;
}

.hero-editor .btn-register,
.hero-editor .btn-support {
  animation: none;
  pointer-events: none;
}

body:not(.is-editing) .edit-only {
  display: none !important;
}

.edit-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem;
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(237, 180, 57, 0.24);
}

.edit-bar-btn {
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.edit-bar-save {
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
}

body.is-editing [data-edit] {
  outline: 1px dashed rgba(237, 180, 57, 0.9);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.edit-bar-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.edit-handle,
.edit-remove,
.edit-add {
  border: 1px solid var(--line);
  background: #fffdf6;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.edit-handle,
.edit-remove {
  position: absolute;
  z-index: 5;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
}

.edit-handle {
  top: 0.4rem;
  left: 0.4rem;
  cursor: grab;
}

.edit-remove {
  top: 0.4rem;
  right: 0.4rem;
}

.edit-handle-section {
  top: 1rem;
  left: 1rem;
}

.edit-remove-section {
  top: 1rem;
  right: 1rem;
}

body:not(.is-editing) .home-actions:not(:has(.home-link)) {
  display: none;
}

.home-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

body.is-editing .community-point {
  padding-top: 2.15rem;
}

body.is-editing .home-link {
  padding: 1.7rem 1.5rem 0;
}

.edit-link-target {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf6;
  color: var(--text);
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}

.home-section {
  position: relative;
}

.edit-add {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.edit-add-row {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

body.is-editing .hero-quotes,
body.is-editing .hero:not(.hero-editor):has(.hero-pcb) .hero-quotes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(40rem, 100%);
}

body.is-editing .edit-quote {
  position: relative;
  margin: 0;
  padding: 0.4rem 2.4rem;
  min-height: 0;
}

body.is-editing .home-carousel,
body.is-editing .home-carousel-track {
  height: auto;
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

body.is-editing .home-carousel-nav,
body.is-editing .home-carousel-dots {
  display: none;
}

body.is-editing .home-card {
  position: relative;
  left: auto;
  top: auto;
  width: min(40rem, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.is-editing .is-dragging {
  opacity: 0.55 !important;
}

.hero-editor-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-shell-form {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.games-status,
.games-empty,
.games-error {
  text-align: center;
  margin: 1.5rem 0 0;
}

.games-status {
  color: var(--primary-dark);
  font-weight: 700;
}

.games-error {
  color: #c45c2a;
}

.games-board {
  min-height: 8rem;
  margin-top: 2rem;
}

.games-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
}

.games-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: games-spin 0.8s linear infinite;
}

@keyframes games-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .games-spinner {
    animation: none;
  }
}

.games-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.games-list > li:has(> .game-poster) {
  flex: 0 0 22rem;
  width: 22rem;
  max-width: 100%;
}

.games-list .game-poster {
  width: 100%;
}

.game-poster {
  display: block;
  width: 22rem;
  max-width: 100%;
  padding: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 10px 28px rgba(51, 38, 6, 0.08);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.game-poster:hover,
a.game-poster:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(237, 180, 57, 0.22);
  color: var(--text);
  transform: translateY(-3px);
}

.game-poster-frame {
  display: block;
  padding: 0.4rem;
  border-radius: 1rem;
  background: var(--primary-bright);
}

.game-poster-image,
.game-poster-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  border-radius: 0.75rem;
}

.game-poster-image {
  object-fit: cover;
}

.game-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, #fffefb 0%, #fff3d6 100%);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-shell a.game-poster,
.page-shell a.game-poster:hover,
.page-shell a.game-poster:focus {
  color: var(--text);
}

.game-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

.game-page-title {
  margin-bottom: 0.5rem;
}

.game-page-team {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.page-shell a.game-page-credit,
.page-shell a.game-page-credit:hover,
.page-shell a.game-page-credit:focus,
.page-shell a.game-page-credit:focus-visible,
.page-shell a.game-page-credit:visited {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 0.2rem;
  padding: 0.5rem 1.05rem;
  background: #fff6dc;
  border: 1px solid rgba(51, 38, 6, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-shell a.game-page-credit:hover,
.page-shell a.game-page-credit:focus-visible {
  z-index: 1;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.page-shell a.game-page-credit:focus {
  outline: none;
}

.page-shell a.game-page-credit:focus-visible {
  outline: 2px solid #332606;
  outline-offset: 3px;
}

.game-page .game-full,
.game-page .game-links {
  width: 100%;
}

.game-page .game-links {
  justify-content: center;
}

.game-back {
  margin: 0 0 1.5rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .game-poster,
  .page-shell a.game-page-credit {
    transition: none;
  }

  a.game-poster:hover,
  a.game-poster:focus-visible,
  .page-shell a.game-page-credit:hover,
  .page-shell a.game-page-credit:focus-visible {
    transform: none;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  width: min(100%, 22rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.game-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
}

.game-meta {
  margin: 0.45rem 0 0;
  color: var(--text);
}

.game-meta span {
  color: var(--muted);
  margin-right: 0.35rem;
}

.game-full {
  margin: 0.85rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.game-links,
.game-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.game-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.page-shell a.game-link,
.page-shell a.btn-register {
  color: var(--hero-ink);
}

.page-shell a.game-link:hover,
.page-shell a.game-link:focus {
  background: var(--primary-bright);
  color: var(--hero-ink);
}

.games-add-row {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 0;
}

.games-add-row .btn-register,
.game-form-card .btn-register,
.game-review-actions .btn-register {
  animation: none;
}

.game-form-card {
  width: 100%;
  margin: 1.5rem 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(237, 180, 57, 0.12);
}

.game-optional {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.game-form-card textarea.auth-input {
  min-height: 0;
  resize: vertical;
}

.events-page {
  background:
    radial-gradient(42rem 16rem at 50% -2rem, rgba(255, 209, 35, 0.34), transparent 70%);
}

.events-head {
  max-width: 40rem;
  margin: 0 auto 0.25rem;
}

.events-head .page-lead {
  max-width: 32rem;
  margin: 0 auto;
  line-height: 1.55;
}

.events-empty {
  max-width: 36rem;
  margin: 2.25rem auto 0;
  padding: 1.6rem 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  background: linear-gradient(180deg, #fffefb 0%, #fff6d4 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.35rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  width: 100%;
  padding: 0.9rem 1.2rem 1.05rem 0.85rem;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 209, 35, 0.38), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff6d8 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.35rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-shell a.event-card,
.page-shell a.event-card:hover,
.page-shell a.event-card:focus {
  color: var(--text);
  text-decoration: none;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(237, 180, 57, 0.28);
}

a.event-card:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.event-date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 6.1rem;
  padding: 0.45rem 0.35rem 0.5rem;
  background: #fff;
  border: 2px solid rgba(255, 209, 35, 0.95);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.event-date-day {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  margin-top: 0.2rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date-year {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.event-body {
  min-width: 0;
  padding-top: 0.25rem;
}

.event-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.event-place {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 209, 35, 0.7);
  border-radius: 999px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-place span {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-description {
  margin: 0.85rem 0 0;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .event-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 0.65rem;
    padding: 0.95rem 0.85rem;
  }

  .event-date {
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0 0.7rem 0 0;
  }

  .event-date-month,
  .event-date-year {
    margin-top: 0;
  }

  .event-body {
    padding-top: 0;
  }
}

.event-page {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}

.event-page-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  text-shadow: 0 10px 28px rgba(237, 180, 57, 0.28);
  animation: event-rise 0.7s ease both;
}

.event-page-when {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  animation: event-rise 0.7s ease 0.08s both;
}

.event-page-rule {
  width: 4.75rem;
  height: 3px;
  margin: 1.05rem auto 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary-bright), var(--primary-dark), transparent);
  background-size: 200% 100%;
  animation: event-shimmer 3.8s ease-in-out infinite, event-rise 0.7s ease 0.12s both;
}

.event-page-place {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  animation: event-rise 0.7s ease 0.16s both;
}

.event-page-place span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-page .event-description {
  margin-top: 1.55rem;
  font-size: 1.06rem;
  line-height: 1.7;
  animation: event-rise 0.75s ease 0.2s both;
}

.event-page-actions {
  margin: 1.75rem 0 0;
  text-align: center;
  animation: event-rise 0.7s ease 0.24s both;
}

.event-page .btn-register {
  animation: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.event-page .btn-register:hover,
.event-page .btn-register:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(237, 180, 57, 0.34);
}

@keyframes event-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes event-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-card {
    transition: none;
  }

  .event-card:hover {
    transform: none;
  }

  .event-page-title,
  .event-page-when,
  .event-page-rule,
  .event-page-place,
  .event-page .event-description,
  .event-page-actions,
  .event-page .btn-register {
    animation: none;
    transition: none;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.55rem;
  padding: 0;
  list-style: none;
}

.social-link {
  display: block;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(237, 180, 57, 0.38);
}

.social-link:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 4px;
}

.partnership-page {
  background:
    radial-gradient(42rem 16rem at 50% -2rem, rgba(255, 209, 35, 0.34), transparent 70%);
}

.partnership-head {
  max-width: 46rem;
  margin: 0 auto;
}

.partnership-head .page-title {
  margin-bottom: 1.35rem;
  line-height: 1.25;
}

.partnership-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partnership-copy p {
  margin: 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
}

.partnership-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  max-width: 52rem;
  margin: 2.5rem auto 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 34rem);
  padding: 1rem 1.35rem 1rem 1rem;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(255, 209, 35, 0.38), transparent 58%),
    linear-gradient(165deg, #fffef9 0%, #fff6d8 100%);
  border: 3px solid var(--primary-bright);
  border-radius: 1.5rem;
  box-shadow: 0 14px 32px rgba(237, 180, 57, 0.16);
}

.contact-photo {
  flex-shrink: 0;
  width: 7.75rem;
  height: 7.75rem;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 1.2rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-bright);
}

.contact-body {
  min-width: 0;
}

.contact-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.contact-role {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.page-shell a.contact-telegram {
  display: inline-block;
  width: 2.15rem;
  height: 2.15rem;
  margin-top: 0.75rem;
  border-radius: 50%;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-telegram img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-shell a.contact-telegram:hover,
.page-shell a.contact-telegram:focus-visible {
  text-decoration: none;
  transform: translateY(-2px);
}

.page-shell a.contact-telegram:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
}

.partnership-note {
  max-width: 40rem;
  margin: 2.35rem auto 0;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 1rem 1.3rem;
  }

  .contact-photo {
    width: 8.5rem;
    height: 8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell a.contact-telegram {
    transition: none;
  }

  .page-shell a.contact-telegram:hover,
  .page-shell a.contact-telegram:focus-visible {
    transform: none;
  }
}

.auth-shell {
  max-width: 32rem;
}

.page-shell .events-mode a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.page-shell .events-mode a:hover,
.page-shell .events-mode a:focus {
  background: #f8edd4;
  color: var(--text);
}

.page-shell .events-mode a.is-active,
.page-shell .events-mode a.is-active:hover,
.page-shell .events-mode a.is-active:focus {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(237, 180, 57, 0.28);
}

.profile-logout {
  margin-left: auto;
}

.page-shell-form .events-filters {
  margin-top: 1.25rem;
}

.profile-section {
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.profile-pair,
.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
  align-items: start;
}

.profile-split {
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
}

.profile-pair:not(:has(> :not([hidden]) ~ :not([hidden]))) {
  grid-template-columns: 1fr;
}

.profile-section > legend,
.profile-section > h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.choice-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
}

.avatar-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}

.avatar-heading-name {
  font-weight: 800;
}

.avatar-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #9a6230;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.avatar-empty[hidden] {
  display: none;
}

.avatar-empty-dash {
  color: rgba(51, 38, 6, 0.28);
  font-weight: 700;
}

.avatar-empty [data-avatar-empty-text] {
  display: inline-block;
  max-width: 14rem;
  padding: 0.16rem 0.6rem 0.2rem;
  border-radius: 999px;
  background: rgba(255, 209, 35, 0.34);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: baseline;
}

.avatar-empty.is-chosen {
  color: var(--text);
}

.avatar-empty.is-chosen [data-avatar-empty-text] {
  background: #fff6dc;
  border: 1px solid var(--line);
}

.avatar-field > p {
  margin: 0.15rem 0 0.85rem;
}

.avatar-upload {
  position: relative;
  display: inline-flex;
  margin: 0.1rem 0 0.75rem;
  cursor: pointer;
}

.avatar-file {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
  font-size: 0;
}

.avatar-file:focus {
  outline: none;
}

.avatar-upload:hover .avatar-upload-btn,
.avatar-upload:focus-within .avatar-upload-btn {
  background: #f8edd4;
  border-color: var(--primary);
}

.avatar-upload:focus-within .avatar-upload-btn {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-bright-rgb), 0.35);
}

.avatar-upload:has(.avatar-file.is-invalid) .avatar-upload-btn {
  border-color: #c45c2a;
  box-shadow: 0 0 0 3px rgba(196, 92, 42, 0.15);
}

.engine-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  gap: 0.65rem;
}

.engine-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

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

.engine-card-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 100%;
  min-height: 6.7rem;
  padding: 0.85rem 0.45rem 0.7rem;
  border: 1.5px solid rgba(51, 38, 6, 0.14);
  border-radius: 1.15rem;
  background: #fffdf8;
  box-shadow: 0 10px 24px -18px rgba(51, 38, 6, 0.7);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.engine-card:hover .engine-card-face {
  border-color: rgba(51, 38, 6, 0.32);
  transform: translateY(-2px);
}

.engine-card input:checked + .engine-card-face {
  background: #fff4c2;
  border-color: #e0b01a;
  box-shadow: 0 10px 22px -12px rgba(224, 176, 26, 0.95);
}

.engine-card input:focus-visible + .engine-card-face {
  outline: 2px solid #332606;
  outline-offset: 3px;
}

.engine-mark,
.engine-mark svg,
.engine-mark img {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
}

.engine-mark img {
  object-fit: contain;
}

.engine-card-name {
  max-width: 100%;
  font-weight: 800;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.engine-card-check {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid rgba(51, 38, 6, 0.18);
  background: #fff;
}

.engine-card input:checked + .engine-card-face .engine-card-check {
  border-color: #332606;
  background: #332606;
}

.engine-card input:checked + .engine-card-face .engine-card-check::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.14rem;
  width: 0.28rem;
  height: 0.48rem;
  border: solid #fff8e6;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.engine-other {
  max-width: 24rem;
  margin-top: 0.9rem;
}

.engine-other[hidden] {
  display: none;
}

.skill-picked {
  --skill-frame-offset: calc(0.55rem + 1.5px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
}

.skill-picked:has(+ .skill-preview-note:not([hidden])) {
  margin-bottom: calc(var(--skill-frame-offset) + 0.7rem);
}

.skill-picked.is-skill-wrapped:has(+ .skill-preview-note:not([hidden])) {
  margin-bottom: 0.7rem;
}

.skill-frame {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 100%;
  margin-bottom: calc(var(--skill-frame-offset) * -1);
  padding: 0.55rem;
  border: 1.5px solid rgba(51, 38, 6, 0.28);
  border-radius: 1.35rem;
  background: rgba(255, 246, 220, 0.55);
}

.skill-picked > .skill-token,
.skill-picked > .skill-token-placeholder {
  margin-top: var(--skill-frame-offset);
}

.skill-frame[hidden],
.skill-preview-note[hidden] {
  display: none;
}

.skill-preview-note {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.skill-token-placeholder {
  flex: 0 0 auto;
  border: 1.5px dashed rgba(51, 38, 6, 0.35);
  border-radius: 1.05rem;
  background: rgba(255, 244, 214, 0.8);
}

.skill-token {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0.45rem;
  border: 1.5px solid rgba(51, 38, 6, 0.14);
  border-radius: 1.05rem;
  background: #fffdf8;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.skill-token.is-dragging,
.skill-token.is-dragging:hover {
  position: fixed;
  z-index: 40;
  margin: 0;
  pointer-events: none;
  cursor: grabbing;
  box-shadow: 0 12px 28px rgba(51, 38, 6, 0.28);
}

body.is-skill-dragging,
body.is-skill-dragging * {
  cursor: grabbing !important;
}

.skill-token.is-dragging .skill-tip,
.skill-token.is-dragging:hover .skill-tip {
  display: none;
}

.skill-token .engine-mark,
.skill-token .engine-mark img,
.skill-token .engine-mark svg {
  width: 2.15rem;
  height: 2.15rem;
}

.skill-token-remove {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #332606;
  color: #fff8e6;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.skill-token-remove:focus-visible {
  outline: 2px solid #332606;
  outline-offset: 2px;
}

.skill-composer {
  container: skill-composer / inline-size;
  min-width: 0;
}

.skill-composer-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.15rem;
  row-gap: 0.75rem;
  min-width: 0;
}

.skill-composer-layout > [data-skill-add] {
  grid-column: 1;
  grid-row: 1;
  min-height: 3.1rem;
}

.skill-menu,
.skill-menu-panel {
  display: contents;
}

.skill-menu-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.skill-menu-field {
  display: flex;
  flex: 1 1 16rem;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  max-width: 28rem;
}

.skill-menu-field .form-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.skill-menu-field .form-control {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
}

.skill-menu-body {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fffdf8;
}

.skill-menu-body:not(:has(> :not([hidden]))) {
  display: none;
}

.skill-menu-body > [data-skill-items-label] {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-weight: 800;
}

.skill-menu[hidden],
.skill-pick-group[hidden],
.skill-pick-option[hidden],
[data-skill-group-items][hidden],
[data-skill-items-label][hidden],
[data-skill-empty][hidden],
.skill-menu [data-skill-browse][hidden],
.skill-menu [data-skill-request][hidden],
.skill-menu [data-skill-search-added][hidden],
.skill-menu [data-skill-request-button][hidden],
.skill-menu [data-skill-request-status][hidden],
.skill-menu [data-skill-request-error][hidden],
.skill-menu [data-skill-group-label][hidden] {
  display: none;
}

.skill-menu.is-searching .skill-pick-list {
  max-height: none;
  overflow: visible;
}

.skill-menu.is-searching .skill-menu-body {
  max-height: min(32rem, 70dvh);
  overflow: auto;
  overscroll-behavior: contain;
}

.skill-search-group {
  margin: 0.85rem 0 0.35rem;
  color: #7a6840;
  font-size: 0.82rem;
  font-weight: 800;
}

.skill-request-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-top: 0.35rem;
}

.skill-request-row .game-cover-hint,
.skill-request-row .field-error,
.skill-menu [data-skill-search-added] {
  margin: 0;
}

.skill-pick-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.4rem;
  max-height: 18rem;
  overflow: auto;
}

.skill-pick-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(51, 38, 6, 0.12);
  border-radius: 0.85rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.skill-pick-option:hover,
.skill-pick-option:focus-visible {
  border-color: #e0b01a;
  background: #fff4c2;
}

.skill-pick-option .engine-mark,
.skill-pick-option .engine-mark img,
.skill-pick-option .engine-mark svg {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.skill-pick-option > span:last-child {
  min-width: 0;
}

@container skill-composer (max-width: 48rem) {
  .skill-composer-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    row-gap: 0;
  }

  .skill-composer-layout > [data-skill-add] {
    justify-self: start;
  }

  .skill-menu-panel {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin-top: 0.85rem;
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: #fffdf8;
  }

  .skill-menu-bar {
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .skill-menu-field {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    max-width: none;
  }

  .skill-menu-field .form-control {
    flex: none;
    width: 100%;
    height: auto;
  }

  .skill-menu-field .form-label {
    white-space: normal;
  }

  .skill-menu-body {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0.85rem;
    padding: 0.85rem 0 0;
    border: 0;
    border-top: 1px solid rgba(51, 38, 6, 0.12);
    border-radius: 0;
    background: transparent;
  }

  .skill-request-row {
    align-items: stretch;
  }

  .skill-request-row .quiet-btn {
    width: 100%;
  }

  .skill-pick-option {
    min-height: 3rem;
    padding: 0.55rem 0.7rem;
  }
}

@container skill-composer (max-width: 36rem) {
  .skill-pick-list {
    grid-template-columns: 1fr;
    max-height: 16rem;
  }
}

.password-fields {
  margin-top: 0.9rem;
}

.privacy-audience {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  gap: 0.35rem 1rem;
  align-items: center;
  margin: 0.85rem 0 0;
}

.privacy-audience .form-label {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.privacy-audience-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.privacy-audience-options label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

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

.privacy-audience-options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.3rem 0.95rem;
  border: 1px solid rgba(51, 38, 6, 0.18);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
}

.privacy-audience-options input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
}

.privacy-audience-options input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.experience-row,
.role-row {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: #fffdf8;
}

.role-row-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.role-row-head > .mb-3 {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.role-row [data-role-specs] {
  margin-top: 0.85rem;
}

.member-body > .member-role,
.member-summary > .member-role,
.profile-public-copy > .member-role {
  display: block;
}

.experience-actions,
.team-row-actions,
.profile-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.member-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.page-shell a.member-card,
.page-shell a.team-card,
.member-card,
.team-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.15rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-shell a.member-card,
.member-card {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.member-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.member-identity .member-avatar {
  align-self: center;
}

.member-identity .member-name {
  min-width: 0;
}

.member-card .member-body {
  flex: 1 1 auto;
  width: 100%;
}

.page-shell a.member-card:hover,
.page-shell a.member-card:focus,
.page-shell a.team-card:hover,
.page-shell a.team-card:focus {
  z-index: 3;
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-4px);
}

html.is-members-list .member-grid {
  grid-template-columns: minmax(11rem, 16.5rem) minmax(0, 1fr) max-content;
  column-gap: 1.25rem;
  row-gap: 0.65rem;
}

html.is-members-list .page-shell a.member-card,
html.is-members-list .member-card {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  column-gap: 1.25rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.8rem 1.15rem;
}

html.is-members-list .member-identity {
  width: auto;
  max-width: none;
  min-width: 0;
}

html.is-members-list .member-identity .member-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-members-list .member-card .member-body {
  display: contents;
}

.member-summary {
  display: contents;
}

html.is-members-list .member-summary {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

html.is-members-list .member-summary > .member-role {
  display: inline;
  margin-right: 0.5rem;
  white-space: normal;
}

html.is-members-list .member-summary > .skill-icons {
  display: contents;
}

html.is-members-list .member-summary .skill-icon {
  margin: 0.12rem 0.35rem 0.12rem 0;
  vertical-align: middle;
}

html.is-members-list .member-summary > .member-extra {
  margin-top: 0;
  margin-left: 0.45rem;
  vertical-align: middle;
}

html.is-members-list .member-status {
  width: 16.5rem;
  max-width: 100%;
  margin-left: 0;
  padding-left: 0;
  min-width: 0;
  line-height: 1.35;
  white-space: normal;
}

@media (max-width: 720px) {
  html.is-members-list .member-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html.is-members-list .page-shell a.member-card,
  html.is-members-list .member-card {
    display: flex;
    flex-wrap: wrap;
    grid-column: auto;
    align-items: flex-start;
  }

  html.is-members-list .member-identity {
    flex-basis: 100%;
  }

  html.is-members-list .member-summary > .member-role,
  html.is-members-list .member-status {
    white-space: normal;
  }

  html.is-members-list .member-card .member-body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  html.is-members-list .member-summary,
  html.is-members-list .member-status {
    flex-basis: 100%;
    max-width: none;
  }
}

.member-avatar,
.person-avatar {
  box-sizing: border-box;
  width: 3.4rem;
  height: 3.4rem;
  min-width: 3.4rem;
  max-width: 3.4rem;
  min-height: 3.4rem;
  max-height: 3.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 3.4rem;
  align-self: flex-start;
  color: var(--text);
}

.member-avatar img,
.person-avatar img {
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  min-width: 3.4rem;
  max-width: none;
  min-height: 3.4rem;
  max-height: 3.4rem;
  object-fit: cover;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.community-display {
  position: relative;
}

.community-display-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 13rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fffdf8;
  box-shadow: 0 16px 36px rgba(51, 38, 6, 0.18);
}

.community-display-menu[hidden] {
  display: none;
}

.community-display-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.community-display-item:hover,
.community-display-item:focus-visible {
  background: #fff6dc;
}

.community-display-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.community-display-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.community-display-rule {
  height: 1px;
  margin: 0.3rem 0.45rem;
  background: var(--line);
}

@media (max-width: 720px) {
  .community-display-views,
  .community-display-views + .community-display-rule {
    display: none;
  }
}

.community-display-item[aria-checked="true"]::after {
  content: "";
  width: 0.38rem;
  height: 0.68rem;
  margin-top: -0.15rem;
  border: solid #332606;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.community-filter-open {
  gap: 0.45rem;
}

.community-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--primary);
  font-size: 0.78rem;
  line-height: 1;
}

.community-filter-dialog {
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #e2d2a4;
  border-radius: 1.1rem;
  box-shadow: 0 28px 70px rgba(51, 38, 6, 0.35);
  overflow: hidden;
}

.community-filter-dialog[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%);
}

.community-filter-dialog::backdrop {
  background: rgba(32, 24, 6, 0.48);
}

.community-filter-dialog form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 2rem);
}

.community-filter-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem 0.7rem 1.15rem;
  background: linear-gradient(180deg, #ffe48a 0%, var(--primary) 100%);
}

.community-filter-titlebar h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.community-filter-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.community-filter-close:hover,
.community-filter-close:focus-visible {
  background: #fffdf8;
}

.community-filter-body {
  overflow: auto;
  min-height: 0;
  padding: 1.1rem 1.15rem 1.2rem;
}

.community-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.community-filter-apply {
  background: var(--primary);
  border-color: transparent;
}

.community-filter-apply:hover,
.community-filter-apply:focus-visible {
  background: #d7a22a;
  border-color: #d7a22a;
}

.member-body,
.team-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 10rem;
}

.page-shell a.team-card,
.team-card {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.member-name,
.team-name,
.person-name {
  font-weight: 800;
}

.team-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 700;
}

.team-looking {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.team-looking-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-page-lead {
  max-width: 62ch;
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.member-page > .team-facts {
  margin-top: 1rem;
}

.member-role,
.team-description,
.person-role {
  color: var(--muted);
}

.member-skills,
.team-roles,
.skill-list,
.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.skill-chip {
  display: inline-flex;
  border-radius: 999px;
  background: #fff6dc;
  border: 1px solid var(--line);
  padding: 0.08rem 0.5rem;
  font-size: 0.78rem;
}

.skill-icon,
.skill-token {
  position: relative;
}

html:not(.is-skills-full) .member-grid .skill-icon:nth-child(n + 7),
html:not(.is-skills-full) .member-grid .member-extra {
  display: none;
}

.member-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 700;
}

.member-team {
  color: var(--text);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  flex: 0 0 auto;
  border-radius: 0.45rem;
}

.skill-icon .engine-mark,
.skill-icon .engine-mark img,
.skill-icon .engine-mark svg {
  width: 1.85rem;
  height: 1.85rem;
}

.skill-icon:hover,
.skill-icon:focus-visible {
  background: #fff6dc;
}

.skill-icon:focus-visible {
  outline: 2px solid #332606;
  outline-offset: 3px;
}

.skill-tip {
  display: none;
  position: absolute;
  z-index: 8;
  left: calc(100% + 0.42rem);
  top: 50%;
  width: max-content;
  max-width: 12rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid #e2d2a4;
  border-radius: 0.75rem;
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(51, 38, 6, 0.22);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

.skill-tip::before {
  content: "";
  position: absolute;
  left: -0.34rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  transform: translateY(-50%) rotate(45deg);
  background: #fffdf8;
  border-left: 1px solid #e2d2a4;
  border-bottom: 1px solid #e2d2a4;
}

.skill-tip.is-left {
  left: auto;
  right: calc(100% + 0.42rem);
}

.skill-tip.is-left::before {
  left: auto;
  right: -0.34rem;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid #e2d2a4;
  border-top: 1px solid #e2d2a4;
}

.skill-tip.is-above,
.skill-token .skill-tip {
  left: 50%;
  right: auto;
  top: auto;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
}

.skill-icon .skill-tip.is-above {
  left: calc(100% - 0.55rem);
  transform: none;
}

.skill-tip.is-above::before,
.skill-token .skill-tip::before {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -0.34rem;
  transform: translateX(-50%) rotate(45deg);
  border: 0;
  border-right: 1px solid #e2d2a4;
  border-bottom: 1px solid #e2d2a4;
}

.skill-icon .skill-tip.is-above::before {
  left: 0.85rem;
  transform: rotate(45deg);
}

.skill-icon:hover,
.skill-icon:focus,
.skill-icon:focus-visible,
.skill-token:hover,
.skill-token:focus-within {
  z-index: 6;
}

.skill-icon:hover .skill-tip,
.skill-icon:focus .skill-tip,
.skill-icon:focus-visible .skill-tip,
.skill-token:hover .skill-tip,
.skill-token:focus-within .skill-tip {
  display: block;
}

.member-status,
.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.status-dot-green { background: #2f9e44; }
.status-dot-yellow { background: #d4a017; }
.status-dot-gray { background: #8d8d8d; }

.member-status.is-looking {
  position: relative;
}

.status-tip {
  display: none;
  position: absolute;
  z-index: 4;
  left: 0;
  top: 100%;
  width: max-content;
  max-width: min(16rem, calc(100vw - 2rem));
  padding-top: 0.4rem;
  pointer-events: none;
}

.status-tip-window {
  display: block;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #e2d2a4;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(51, 38, 6, 0.28);
}

.status-tip-title {
  display: block;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(180deg, #ffe48a 0%, var(--primary) 100%);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-tip-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.member-status.is-looking:hover .status-tip,
.member-status.is-looking:focus-visible .status-tip {
  display: block;
}

.community-pager {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-public {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
}

.profile-avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: #fff1a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

.profile-public-copy h1 {
  text-align: left;
  margin: 0 0 0.35rem;
}

.member-page {
  max-width: 68rem;
  margin: 0 auto;
}

.member-page .game-back {
  text-align: left;
}

.member-page .profile-public-copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
}

.member-edit {
  margin: 0.85rem 0 0;
}

.member-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-top: 1.75rem;
}

.member-layout.is-split {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1.75rem 2.5rem;
}

.member-layout:not(.is-split) .member-aside {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  align-items: stretch;
}

.member-layout:not(.is-split) .member-panel {
  min-width: 0;
  height: 100%;
}

.member-layout:not(.is-split) .member-aside:has(> :only-child) {
  width: max-content;
  min-width: min(100%, 18rem);
  max-width: min(100%, 36rem);
  grid-template-columns: minmax(0, 1fr);
}

.member-layout:not(.is-split) .member-aside:has(> :only-child) .member-panel {
  height: auto;
}

.member-layout:not(.is-split) .member-panel .skill-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(1.95rem, 1fr));
  justify-items: center;
  gap: 0.45rem 0.2rem;
}

.member-layout:not(.is-split) .member-aside:has(> :only-child) .skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 32rem;
}

.member-page h2 {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-block + .member-block {
  margin-top: 1.75rem;
}

.member-copy {
  margin: 0.35rem 0 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.member-aside {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.member-panel {
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member-contacts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.member-contacts div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: baseline;
}

.member-contacts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.member-contacts dd {
  margin: 0;
  color: #111;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.member-contacts dd a,
.member-contacts dd a:hover,
.member-contacts dd a:focus-visible {
  color: #111;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.member-page .team-row {
  justify-content: flex-start;
  text-align: left;
}

.event-page h2 {
  margin: 1.75rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invite-results {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.invite-result {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.team-error {
  color: #c45c2a;
  font-weight: 700;
}

@media (max-width: 720px) {
  .member-layout.is-split {
    grid-template-columns: 1fr;
  }

  .member-layout.is-split .member-aside {
    order: -1;
  }

  .profile-pair,
  .profile-split,
  .privacy-audience {
    grid-template-columns: 1fr;
  }

  .role-row-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 575.98px) {
  .choice-grid,
  .profile-public {
    grid-template-columns: 1fr;
  }
}

.profile-board {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.profile-portfolio,
.member-portfolio {
  scroll-margin-top: 5.5rem;
}

.profile-portfolio {
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portfolio-head h2,
.profile-portfolio > h2 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.portfolio-empty {
  margin: 0.85rem 0 0;
}

.profile-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.85rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.profile-game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  color: inherit;
  text-decoration: none;
}

a.profile-game:hover,
a.profile-game:focus-visible {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.page-shell a.profile-game,
.page-shell a.profile-game:hover,
.page-shell a.profile-game:focus,
.page-shell a.profile-game:focus-visible,
.page-shell a.profile-game:visited,
.page-shell a.name-link,
.page-shell a.name-link:hover,
.page-shell a.name-link:focus,
.page-shell a.name-link:focus-visible,
.page-shell a.name-link:visited {
  color: var(--text);
  text-decoration: none;
}

.profile-game.is-pending {
  box-shadow: inset 0 0 0 2px rgba(255, 209, 35, 0.95);
}

.profile-game.is-rejected {
  opacity: 0.72;
}

.profile-game-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 460 / 215;
  background:
    radial-gradient(circle at 18% 20%, #fff6c4, transparent 55%),
    linear-gradient(145deg, #ffe48a, #f6e3a4 42%, #fffdf4);
  color: var(--hero-ink);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
}

.profile-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-game-body {
  display: grid;
  gap: 0.28rem;
  align-content: start;
  padding: 0.85rem 0.95rem 1rem;
}

.profile-game-body h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-shell .profile-game-body h3 a,
.page-shell .profile-game-body h3 a:hover,
.page-shell .profile-game-body h3 a:focus,
.page-shell .profile-game-body h3 a:focus-visible,
.page-shell .profile-game-body h3 a:visited {
  color: var(--text);
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.profile-game-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-game-summary {
  margin: 0.15rem 0 0;
  color: var(--text);
  line-height: 1.45;
}

.profile-game-body form {
  margin-top: 0.45rem;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.portfolio-launch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-bright) 0%, var(--primary) 100%);
  color: var(--hero-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.portfolio-launch.is-quiet {
  background: var(--surface);
  border: 1px solid rgba(51, 38, 6, 0.18);
}

.page-shell a.portfolio-launch,
.page-shell a.portfolio-launch:hover,
.page-shell a.portfolio-launch:focus,
.page-shell a.portfolio-launch:visited {
  color: var(--hero-ink);
  text-decoration: none;
}

.portfolio-dialog[open] {
  flex-direction: column;
}

.portfolio-dialog .community-filter-body {
  flex: 1 1 auto;
  min-height: 0;
}

.member-portfolio {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.affiliation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.member-page .affiliation {
  box-shadow: var(--shadow);
}

.member-page .team-row:has(a.name-link),
.member-page .affiliation:has(a.name-link) {
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-page .team-row:has(a.name-link):hover,
.member-page .team-row:has(a.name-link:focus-visible),
.member-page .affiliation:has(a.name-link):hover,
.member-page .affiliation:has(a.name-link:focus-visible) {
  z-index: 3;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.member-page .team-row a.name-link::after,
.member-page .affiliation a.name-link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.member-page .team-row a.name-link:focus,
.member-page .affiliation a.name-link:focus {
  outline: none;
}

.member-page .team-row:has(a.name-link:focus-visible),
.member-page .affiliation:has(a.name-link:focus-visible) {
  outline: 2px solid #332606;
  outline-offset: 3px;
}

.affiliation-main {
  flex: 1 1 auto;
  min-width: 0;
}

.affiliation-state {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  vertical-align: 0.1rem;
}

.affiliation-state.is-current {
  background: #e7f6df;
  color: #2f6b32;
}

.affiliation-wait {
  font-weight: 800;
  color: var(--primary-dark);
}

.affiliation-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.affiliation-delete {
  color: #c45c2a;
  border-color: rgba(196, 92, 42, 0.35);
}

.affiliation-drop {
  display: none;
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.75rem;
  scroll-margin-top: 5.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.affiliation-drop:target {
  display: grid;
}

.team-panel {
  scroll-margin-top: 5.5rem;
}

.team-panel.is-attention {
  border-color: rgba(var(--primary-rgb), 0.85);
  background: linear-gradient(180deg, #fff6cf 0%, var(--surface) 70%);
}

.team-panel .team-list {
  margin-top: 0.9rem;
}

.team-panel .team-row,
.team-panel .affiliation {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fffdf8;
  box-shadow: none;
}

.team-panel .team-row.is-compact {
  padding: 0.6rem 0.75rem;
  gap: 0.7rem;
}

.team-row-main,
.team-panel .affiliation-main {
  flex: 1 1 10rem;
  min-width: 0;
}

.team-row-main strong {
  overflow-wrap: anywhere;
}

.team-panel .affiliation-tools,
.team-panel .team-row-actions {
  margin-left: auto;
}

.team-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.35rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--hero-ink);
  font-size: 0.8rem;
  vertical-align: 0.1rem;
}

.team-badge {
  display: inline-flex;
  flex: 0 0 2.6rem;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff1a8 0%, var(--primary) 100%);
  color: var(--hero-ink);
  font-family: var(--display);
  font-weight: 800;
}

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

.team-badge.is-large {
  flex-basis: 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 20px;
  font-size: 1.7rem;
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.team-identity .team-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-public-copy .team-page-lead {
  margin-top: 0.35rem;
}

.profile-public-copy .team-facts {
  margin-top: 0.75rem;
}

.person-avatar.team-avatar {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
  flex-basis: 2.5rem;
  align-self: center;
  font-size: 0.95rem;
}

.person-avatar.team-avatar img {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  max-height: 2.5rem;
}

.quiet-btn.is-small,
.btn.is-small {
  min-height: 2.2rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
}

.quiet-btn.is-danger {
  color: #b44a1c;
  border-color: rgba(196, 92, 42, 0.45);
}

.quiet-btn.is-danger:hover,
.quiet-btn.is-danger:focus-visible {
  background: #fbe6da;
  border-color: #c45c2a;
}

.page-shell a.quiet-btn,
.page-shell a.quiet-btn:hover,
.page-shell a.quiet-btn:focus {
  color: var(--text);
  text-decoration: none;
}

.page-shell a.quiet-btn.affiliation-delete {
  color: #c45c2a;
}

.team-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: team-step;
}

.team-steps li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px dashed rgba(51, 38, 6, 0.2);
  border-radius: 16px;
  background: #fffdf8;
  counter-increment: team-step;
}

.team-steps li::before {
  content: counter(team-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--hero-ink);
  font-weight: 800;
}

.team-steps span {
  color: var(--muted);
  font-size: 0.92rem;
}

.team-form {
  max-width: 34rem;
}

.team-hero {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.team-hero-main {
  min-width: 0;
}

.team-hero-main h2 {
  margin: 0.1rem 0 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.team-hero-text {
  margin: 0;
  max-width: 44rem;
}

.team-hero-text.is-empty {
  color: var(--muted);
  font-style: italic;
}

.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin-top: 0.75rem;
}

.team-stat {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.team-stat.is-wait {
  background: #fff1c2;
  color: var(--primary-dark);
}

.team-stat-link {
  font-size: 0.9rem;
  font-weight: 800;
}

.team-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.team-column {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf0;
}

.team-column .team-list {
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.team-subhead {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-column .team-list + .team-subhead,
.team-column .invite-empty + .team-subhead,
.team-column .invite-results + .invite-empty + .team-subhead {
  margin-top: 1.25rem;
}

.team-column > .game-cover-hint {
  margin: 0.4rem 0 0;
}

.team-note {
  margin-top: 0.6rem;
}

.team-column .invite-results {
  margin-top: 0.75rem;
}

.team-column .invite-result {
  justify-content: flex-start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.team-column .invite-result form {
  margin-left: auto;
}

.team-column .invite-results[aria-busy="true"] {
  opacity: 0.6;
}

.team-fold {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.team-fold + .team-fold {
  margin-top: 0.85rem;
}

.team-fold > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.team-fold > summary::-webkit-details-marker {
  display: none;
}

.team-fold > summary::before {
  content: "›";
  display: inline-block;
  width: 0.8rem;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.team-fold[open] > summary::before {
  transform: rotate(90deg);
}

.team-fold[open] > .team-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 0.9rem;
}

.team-fold .form-control,
.affiliation-drop .form-control {
  width: 100%;
  max-width: 100%;
}

.team-fold.is-danger > summary {
  color: #b44a1c;
}

@media (max-width: 720px) {
  .team-columns {
    grid-template-columns: 1fr;
  }

  .team-hero {
    flex-direction: column;
  }

  .team-panel .affiliation-tools,
  .team-panel .team-row-actions {
    margin-left: 0;
  }

  .team-panel.profile-portfolio {
    padding: 1rem 0.9rem 1.1rem;
  }

  .team-fold > summary {
    align-items: flex-start;
    min-height: 2.75rem;
    line-height: 1.35;
  }

  .team-fold .game-cover-hint,
  .affiliation-drop .game-cover-hint {
    overflow-wrap: anywhere;
  }

  .team-fold .team-form .btn,
  .team-fold .team-form .quiet-btn,
  .affiliation-drop .btn,
  .affiliation-drop .quiet-btn {
    width: 100%;
    max-width: 100%;
  }

  .team-fold .team-row-actions,
  .affiliation-drop .team-row-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

.game-full.rich-text,
.event-description.rich-text {
  white-space: normal;
}

.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote,
.rich-text pre,
.rich-text table,
.rich-text h2,
.rich-text h3 {
  margin: 0 0 0.85rem;
}

.rich-text h2,
.rich-text h3 {
  font-family: var(--display);
  line-height: 1.25;
}

.rich-text h2 {
  font-size: 1.35rem;
}

.rich-text h3 {
  font-size: 1.15rem;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.25rem;
}

.rich-text a {
  color: var(--primary-dark);
  font-weight: 700;
}

.rich-text blockquote {
  padding-left: 0.9rem;
  border-left: 3px solid var(--primary);
}

.rich-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rich-text th,
.rich-text td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rich-text th {
  background: var(--bg-soft);
}

.rich-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.rich-text pre {
  overflow-x: auto;
  padding: 0.75rem 0.9rem;
  background: var(--bg-soft);
  border-radius: 0.75rem;
}

.rich-text s,
.rich-text del {
  text-decoration: line-through;
}
