:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1c1c22;
  --border: #242428;
  --text: #e2e2e6;
  --text-dim: #9a9aa0;
  --accent: #7c6af7;
  --game: #7c6af7
}
* {
  box-sizing: border-box
}
html {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
body.rc {
  margin: 0;
  min-height: 100vh
}
button,select {
  font: inherit
}
button {
  cursor: pointer
}
a {
  color: inherit
}
.rc-top {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px max(18px,calc((100vw - 1080px)/2));
  border-bottom: 1px solid var(--border);
  background: var(--surface)
}
.rc-home {
  text-decoration: none;
  color: var(--text-dim);
  white-space: nowrap
}
.rc-brand {
  text-decoration: none
}
.rc-word {
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap
}
.rc-word b {
  color: var(--accent);
  font-size: .7em;
  margin: 0 .25em
}
.rc-title {
  margin-left: auto;
  color: var(--text-dim);
  font-size: .9rem
}
.rc-stage,.rc-about,.rc-more {
  max-width: 1080px;
  margin: 28px auto;
  padding: 0 18px
}
.rc-stage {
  min-height: 400px
}
.rc-about {
  line-height: 1.7;
  color: var(--text-dim)
}
.rc-about h2 {
  color: var(--text);
  margin: 2em 0 .4em
}
.rc-about h3 {
  color: var(--text);
  margin: 1.3em 0 .3em
}
.rc-more {
  border-top: 1px solid var(--border);
  padding-top: 24px
}
.rc-more-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px
}
.rc-more-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none
}
.rc-more-card:hover,.rc-more-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 24px #7c6af733
}
.rc-more-card small {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  line-height: 1.4;
}
.rc-foot {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--text-dim);
  font-size: .85rem
}
.rc-overlay {
  position: fixed;
  inset: 0;
  background: #000b;
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 18px
}
.rc-end {
  width: min(100%,400px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 0 60px #7c6af72b;
  padding: 28px;
  text-align: center
}
.rc-end h2 {
  font-size: 2rem;
  margin: 0 0 15px
}
.rc-end p {
  color: var(--text-dim);
  margin: 7px
}
.rc-end button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2)
}
.rc-end button.rc-primary {
  background: var(--game);
  color: #141018;
  font-weight: 700
}
.rc-end-mark {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--text-dim)
}
.rc-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 18px;
  background: #241d39;
  color: var(--text);
  font-size: .85rem
}
.rc-copy button {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 1.2rem
}
@media(max-width:650px) {
  .rc-top {
    gap: 12px
  }
  .rc-title {
    font-size: .8rem
  }
  .rc-more-row {
    grid-template-columns: repeat(2,1fr)
  }
}

.rc-challenge {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: #241d39;
  color: var(--text);
}
.rc-percentile:empty { display: none; }
