:root {
  color-scheme: light;
  --site-bg: #fafaf9;
  --site-paper: #f5f5f4;
  --site-surface: #ffffff;
  --site-surface-soft: #f3f4f6;
  --site-border: #e7e5e4;
  --site-border-strong: #d6d3d1;
  --site-text: #1c1917;
  --site-muted: #57534e;
  --site-subtle: #a8a29e;
  --site-accent: #f97316;
  --site-accent-strong: #ea580c;
  --site-blue: #3b82f6;
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.site-home {
  min-height: 100vh;
  margin: 0;
  color: var(--site-text);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.09), transparent 34%),
    linear-gradient(315deg, rgba(59, 130, 246, 0.08), transparent 34%),
    var(--site-bg);
  font-family: var(--site-font);
  display: flex;
  flex-direction: column;
}

.site-home a {
  color: inherit;
}

body:not(.site-home) {
  font-family: var(--site-font);
}

.shared-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  font-family: var(--site-font);
}

.shared-brand {
  color: var(--site-text);
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.shared-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.shared-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--site-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.shared-nav-links a:hover,
.shared-nav-links a:focus-visible {
  color: var(--site-accent-strong);
  background: #fff7ed;
  outline: none;
}

.shared-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--site-font);
  font-size: 0.82rem;
  font-weight: 800;
}

.shared-footer a {
  color: var(--site-text);
  text-decoration: none;
}

.shared-footer a:hover,
.shared-footer a:focus-visible {
  color: var(--site-accent-strong);
}

.shared-footer span::before {
  content: "·";
  margin-right: 8px;
  color: var(--site-subtle);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px 7px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--site-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.shared-nav.open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.shared-nav.open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.shared-nav.open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .shared-nav {
    position: relative;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  .shared-nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--site-border);
  }

  .shared-nav.open .shared-nav-links {
    display: flex;
  }

  .shared-nav-links a {
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
  }
}


.site-header,
.site-main,
.site-footer,
.site-divider {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  padding-top: clamp(42px, 8vw, 76px);
}

.site-wordmark {
  max-width: 10ch;
  margin: 0;
  color: var(--site-text);
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.site-wordmark em {
  color: var(--site-accent);
  font-style: normal;
}

.site-tagline,
.site-section-label {
  color: var(--site-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-tagline {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--site-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.site-byline {
  margin: 12px 0 0;
  color: var(--site-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-divider {
  padding-block: 34px 0;
}

.site-divider hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--site-border-strong);
}

.site-main {
  flex: 1;
  padding-block: 34px 64px;
}

.site-section-label {
  margin: 0 0 14px;
  color: var(--site-accent-strong);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--site-border-strong);
  border-radius: 8px;
  background: var(--site-border-strong);
}

.project-card {
  min-height: 254px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover,
.project-card:focus-visible {
  background: var(--site-surface);
}

.project-card:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.32);
  outline-offset: -3px;
}

.project-card:hover .card-arrow,
.project-card:focus-visible .card-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.card-tag {
  color: var(--site-accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  max-width: 14ch;
  margin: 0;
  padding-right: 1.5rem;
  color: var(--site-text);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.card-desc {
  flex: 1;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--site-subtle);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 1.5rem;
  border-top: 1px solid var(--site-border-strong);
}

.site-footer span {
  color: var(--site-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--site-border-strong);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--site-muted);
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--site-font);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.site-home-link:hover,
.site-home-link:focus-visible {
  color: var(--site-accent-strong);
  border-color: rgba(249, 115, 22, 0.42);
  background: #fff;
}

.site-home-link--floating {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 120;
}

.site-home-link--dark {
  color: #fed7aa;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 27, 0.74);
  backdrop-filter: blur(12px);
}

.site-home-link--dark:hover,
.site-home-link--dark:focus-visible {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(24, 24, 27, 0.88);
}

@media (max-width: 640px) {
  .site-header,
  .site-main,
  .site-footer,
  .site-divider {
    width: min(100% - 28px, 1120px);
  }

  .site-wordmark {
    font-size: clamp(2.6rem, 17vw, 4.6rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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


.court-bg {
  background-color: #f5f5f4;
  border: 2px solid #d6d3d1;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }


.court-baseline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #d6d3d1;
}

.court-key {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 38%;
  border: 2px solid #d6d3d1;
  border-bottom: none;
  background-color: rgba(245, 245, 244, 0.5);
}

.court-free-throw-circle {
  position: absolute;
  bottom: 38%;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 18%;
  aspect-ratio: 1;
  border: 2px solid #d6d3d1;
  border-radius: 50%;
  background-color: transparent;
}

.court-3pt-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  border: 2px solid #d6d3d1;
  border-bottom: none;
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  background-color: transparent;
}

.court-backboard {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 3px;
  background-color: #78716c;
}

.court-rim {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 6%;
  aspect-ratio: 1;
  border: 2px solid #f97316;
  border-radius: 50%;
}

.rr-layer-btn,
.g-principle-btn {
  border-radius: 8px !important;
}

.system-player,
.system-ball {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, opacity 0.2s ease;
  z-index: 20;
}

.system-player {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  background: #1c1917;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(28, 25, 23, 0.18);
}

.system-primary {
  background: var(--site-accent);
}

.system-ball {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid #c2410c;
  background: #f59e0b;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.24);
}

.action-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--site-text);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.action-choice span {
  color: var(--site-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.action-choice.active,
.action-choice:hover,
.action-choice:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  background: #fff7ed;
  outline: none;
}

.system-info-card {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.system-info-card h3 {
  margin: 0 0 10px;
  color: var(--site-text);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-info-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.route-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 14px;
  color: var(--site-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.route-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route-swatch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 14px;
  flex: 0 0 auto;
}
.route-swatch::before,
.route-swatch::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
}
.route-swatch.pass::before {
  border-top: 3px dashed #f59e0b;
}
.route-swatch.move::before,
.route-swatch.cut::before,
.route-swatch.fill::before,
.route-swatch.rotate::before,
.route-swatch.shift::before {
  border-top: 3px dashed #64748b;
}
.route-swatch.dribble::before,
.route-swatch.drive::before {
  top: 1px;
  height: 12px;
  transform: none;
  background-repeat: no-repeat;
  background-size: 32px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='12' viewBox='0 0 32 12'%3E%3Cpath d='M1 6 C5 0,9 12,13 6 S21 0,25 6 S29 12,31 6' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.route-swatch.screen::before {
  border-top: 4px solid #1c1917;
}
.route-swatch.screen::after {
  left: auto;
  right: 0;
  top: 1px;
  width: 4px;
  height: 12px;
  background: #1c1917;
  transform: none;
}
.route-swatch.trap::before {
  border-top: 3px dashed #2563eb;
}
.route-swatch.chase::before {
  border-top: 3px dashed #ef4444;
}
.route-swatch.switch::before {
  border-top: 3px solid #16a34a;
}
.route-step-label {
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* cloudflare-pages-refresh: 2026-05-27 */
