:root {
  --ink: #191b1a;
  --paper: #f8f8f4;
  --lime: #d2ff57;
  --line: #d9dad2;
  --muted: #666a61;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  width: min(1240px, 91.5%);
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    1000 italic 21px/1 Arial,
    sans-serif;
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brand .thin {
  font-weight: 700;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: 1000 italic 25px/0.95 Arial;
  width: 35px;
  height: 34px;
  transform: skew(-6deg);
  letter-spacing: -4px;
  padding-right: 4px;
}
.bar nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.btn {
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 19px;
  font-size: 15px;
  font-weight: 800;
  background: white;
}
.dark {
  background: var(--ink);
  color: white;
}
.new {
  margin-left: auto;
  padding: 9px 16px;
}
.new b {
  font-size: 19px;
}
.hero {
  margin: 30px 0 43px;
  display: grid;
  grid-template-columns: 46% 54%;
  background: #242334;
  color: white;
  overflow: hidden;
  position: relative;
  border-radius: 17px;
  isolation: isolate;
  min-height: 318px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 85%, #68685855, transparent 58%),
    repeating-linear-gradient(
      -54deg,
      transparent 0 48px,
      #a4a5b00b 49px 50px,
      transparent 51px 86px
    );
  z-index: -1;
}
.herocopy {
  padding: 36px 0 36px 42px;
  align-self: center;
}
.kicker {
  font:
    800 12px/1.2 ui-monospace,
    monospace;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
}
.kicker i {
  height: 9px;
  width: 9px;
  background: var(--lime);
  transform: rotate(45deg);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
}
.hero h1 {
  font-size: clamp(36px, 3.65vw, 55px);
  letter-spacing: -3px;
  line-height: 1.12;
  margin: 17px 0 12px;
}
.hero p {
  color: #d8d8dc;
  font-size: 16px;
  line-height: 1.65;
}
.lime {
  background: var(--lime);
  color: var(--ink);
  border: 0;
}
.hero .btn {
  margin-top: 21px;
}
.art {
  position: relative;
  align-self: stretch;
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px 20px 0;
}
.snap {
  position: relative;
  background: #f9faf2;
  border: 2px solid #141510;
  border-radius: 12px;
  padding: 6px 6px 0;
  overflow: hidden;
  width: 44%;
  height: 225px;
  box-shadow: 7px 8px 0 #1115;
  transform: rotate(-8deg);
  display: flex;
  flex-direction: column;
}
.snap + .snap {
  margin-left: -6px;
  transform: rotate(8deg) translateY(7px);
}
.snap img {
  width: 100%;
  height: calc(100% - 36px);
  object-fit: cover;
  border-radius: 6px;
}
.snap strong {
  text-align: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 36px;
  letter-spacing: -0.6px;
}
.versus {
  position: absolute;
  top: 45%;
  left: calc(50% - 47px);
  transform: rotate(-9deg);
  background: var(--lime);
  color: #191b1a;
  border: 2px solid #161812;
  box-shadow: 3px 3px 0 #171810;
  border-radius: 50%;
  display: grid;
  place-content: center;
  width: 62px;
  height: 62px;
  font: 1000 italic 26px Arial;
  letter-spacing: -2px;
}
.sectionhead,
.filters,
.meta,
.formrow,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sectionhead {
  justify-content: space-between;
  margin-bottom: 18px;
}
h2 {
  font-size: 31px;
  letter-spacing: -1.7px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
}
.search input {
  width: 155px;
  border: 0;
  outline: 0;
  background: transparent;
}
.filters {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  font-size: 14px;
  font-weight: 700;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px #16181015;
}
.thumb {
  height: auto;
  aspect-ratio: 1.96;
  position: relative;
  background: #e7eadb;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.round {
  position: absolute;
  bottom: 11px;
  right: 11px;
  padding: 5px 9px;
  background: #191b1ae8;
  color: white;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}
.info {
  padding: 15px 18px 18px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  gap: 6px;
  margin-bottom: 7px;
}
.meta i {
  width: 7px;
  height: 7px;
  background: var(--tone, #abc26b);
  border-radius: 2px;
}
.info h3 {
  font-size: 21px;
  letter-spacing: -0.85px;
}
.info p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.panel {
  max-width: 850px;
  margin: 42px auto;
  padding: 30px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
}
.panel h1,
.stage h1 {
  font-size: clamp(29px, 4vw, 46px);
  letter-spacing: -1.9px;
  margin: 10px 0 17px;
}
.panel p,
.help {
  line-height: 1.65;
  color: var(--muted);
  margin: 9px 0 16px;
}
label {
  font-size: 14px;
  font-weight: 700;
}
label input,
label select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px;
  border-radius: 7px;
  border: 1px solid #bfc3b7;
  background: #fff;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
legend {
  font-weight: 800;
  margin-bottom: 10px;
}
.formrow {
  margin: 9px 0;
}
.formrow label {
  flex: 1;
}
.formrow label:last-child {
  flex: 2;
}
.actions {
  flex-wrap: wrap;
  margin-top: 18px;
}
.hint {
  background: #f2f4ec;
  padding: 15px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.stage {
  max-width: 940px;
  margin: 40px auto;
  text-align: center;
}
.stage p {
  color: var(--muted);
  line-height: 1.65;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.choice {
  border: 1px solid var(--line);
  background: white;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}
.choice:hover {
  outline: 3px solid #91b541;
}
.choice img,
.winner img,
.previewitem img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  background: #eee;
}
.choice strong,
.previewitem b {
  padding: 16px;
  display: block;
}
.winner {
  margin: 18px auto;
  max-width: 420px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage .actions {
  justify-content: center;
}
.previewgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.previewitem {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.previewitem img {
  display: block;
}
.missing {
  min-height: 110px;
  display: grid;
  place-items: center;
  background: #efeee6;
  color: #665d50;
  font-size: 14px;
}
.stage .kicker,
.panel .kicker {
  justify-content: center;
  color: #55751c;
}
.panel .kicker {
  justify-content: flex-start;
}
.ad {
  margin: 36px auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 30px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 52px !important;
  padding: 23px 0 35px;
  color: var(--muted);
  font-size: 13px;
}
footer b {
  font-style: italic;
}
.error {
  color: #a43522 !important;
}
.btn:focus-visible,
.chip:focus-visible,
a:focus-visible,
.choice:focus-visible {
  outline: 3px solid #638600;
  outline-offset: 3px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 8px;
  background: #181b17;
  color: white;
  z-index: 5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 900px) {
  .bar {
    gap: 22px;
  }
  .hero {
    grid-template-columns: 47% 53%;
  }
  .herocopy {
    padding-left: 25px;
  }
  .art {
    padding-right: 18px;
  }
  .snap {
    height: 185px;
    width: 46%;
  }
  .grid {
    gap: 14px;
  }
  .info {
    padding: 13px;
  }
  .info h3 {
    font-size: 18px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: 92%;
  }
  .bar {
    height: 60px;
  }
  .bar nav {
    display: none;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .logo {
    width: 29px;
    height: 29px;
    font-size: 22px;
  }
  .new {
    font-size: 13px;
    padding: 8px 10px;
  }
  .hero {
    margin: 16px 0 28px;
    display: flex;
    flex-direction: column;
  }
  .herocopy {
    align-self: stretch;
    padding: 23px 23px 0;
  }
  .hero h1 {
    font-size: 35px;
    margin: 10px 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero p {
    font-size: 14px;
  }
  .hero .btn {
    margin-top: 12px;
    padding: 10px 14px;
  }
  .art {
    padding: 8px 0 21px;
    min-height: 168px;
  }
  .snap {
    height: 138px;
    width: 34%;
    max-width: 170px;
  }
  .snap img {
    height: calc(100% - 26px);
  }
  .snap strong {
    font-size: 13px;
    line-height: 26px;
  }
  .versus {
    width: 43px;
    height: 43px;
    font-size: 20px;
    left: calc(50% - 21px);
    top: 37%;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .thumb {
    aspect-ratio: 1.45;
  }
  .info {
    padding: 11px;
  }
  .info p {
    display: none;
  }
  .info h3 {
    font-size: 16px;
  }
  .meta {
    font-size: 12px;
  }
  .sectionhead {
    gap: 8px;
  }
  h2 {
    font-size: 24px;
  }
  .search {
    padding: 6px 8px;
  }
  .search input {
    width: 88px;
    font-size: 14px;
  }
  .chip {
    padding: 7px 12px;
    font-size: 13px;
  }
  .filters {
    gap: 5px;
  }
  .panel {
    padding: 17px;
    margin-top: 22px;
  }
  .formrow {
    flex-direction: column;
    align-items: stretch;
  }
  .pair {
    gap: 9px;
  }
  .choice img {
    aspect-ratio: 1;
  }
  .stage {
    margin-top: 25px;
  }
  .round {
    font-size: 12px;
    bottom: 7px;
    right: 7px;
  }
  .choice strong {
    padding: 12px 6px;
  }
}

.search input {
  display: inline-block;
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-weight: 500;
}

.lobby-posters {
  display: flex;
  gap: 12px;
  margin: 26px auto;
  justify-content: center;
}
.lobby-posters figure {
  flex: 1;
  max-width: 235px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}
.lobby-posters img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}
.lobby-posters figcaption {
  padding: 9px;
  font-weight: 700;
}
.lobby form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.lobby select,
.ranktools select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.ranklink {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
  font-weight: 700;
}
.stage progress {
  width: min(360px, 80%);
  height: 8px;
  accent-color: #698e24;
  margin: 0 auto 12px;
}
.stage h1 small {
  font-size: 0.55em;
  color: var(--muted);
}
.winner h2 {
  padding: 16px;
}
.bracket {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  text-align: left;
  margin: 22px auto;
  max-width: 760px;
}
.bracket summary {
  font-weight: 700;
  cursor: pointer;
}
.bracket h3 {
  margin: 15px 0 7px;
}
.bracket ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bracket li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.bracket small {
  color: var(--muted);
}
.advanced {
  background: #eafac9;
  font-weight: 700;
}
.ranktools {
  text-align: right;
  margin: 14px 0;
}
.ranktools label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.scores {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
.scores td,
.scores th {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.scores th:first-child {
  text-align: left;
}
.scores th div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.scores img {
  width: 48px;
  height: 42px;
  object-fit: cover;
  border-radius: 5px;
}
.position {
  width: 22px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 650px) {
  .lobby-posters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .lobby-posters figure {
    max-width: none;
  }
  .lobby-posters img {
    aspect-ratio: 2;
  }
  .lobby form label {
    width: 100%;
  }
  .scores th,
  .scores td {
    padding: 6px 3px;
    font-size: 13px;
  }
  .scores img {
    width: 30px;
    height: 30px;
  }
  .scores th div {
    gap: 4px;
  }
  .position {
    width: 16px;
  }
}
.thumb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--paper);
}
.thumb img {
  min-width: 0;
}
.thumb-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  border-radius: 50%;
  padding: 7px 5px;
  background: var(--paper);
  font: 900 italic 14px/1 Arial;
  color: var(--ink);
  box-shadow: 0 1px 4px #0004;
}
.pair {
  position: relative;
}
.pair:after {
  content: "VS";
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font: 900 italic 20px/1 Arial;
  pointer-events: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 10px 7px;
  background: var(--lime);
  box-shadow: 2px 3px var(--ink);
}
.cardlinks {
  display: flex;
  border-top: 1px solid var(--line);
}
.cardlinks a {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 700;
}
.cardlinks a + a {
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.cardlinks a:hover {
  background: #f0f4e6;
}
.card > a {
  display: block;
}
#language {
  margin-left: auto;
  max-width: 100px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px;
  background: white;
}
.bar .new {
  margin-left: 0;
}
.sortbar,
.ranktools {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 8px 0 15px;
}
.sortbar select,
.ranktools input,
.ranktools select {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 14px;
}
.cardlinks button {
  border: 0;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 5px 12px;
  font-weight: 700;
}
.choice video,
.winner video,
.winner iframe,
.lobby-posters video,
.thumb video,
.previewitem video,
.previewitem iframe,
.video-choice video,
.video-choice iframe {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border: 0;
  background: #191b1a;
}
.scores video {
  width: 42px;
  height: 36px;
}
.video-choice .choice {
  width: 100%;
}
.video-choice {
  align-self: center;
}
.panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.panel .check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.check input {
  width: auto;
  margin: 0;
}
.panel #translations details,
.discussion,
.library a {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin: 10px 0;
}
.panel summary {
  cursor: pointer;
}
.library a,
.discussion form {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.discussion {
  text-align: left;
  background: white;
  margin-top: 24px;
}
.discussion form {
  align-items: end;
}
.discussion article {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.discussion article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tablewrap {
  overflow: auto;
}
.library a span {
  color: var(--muted);
}
.hero h1 {
  max-width: 10em;
}
.hero .snap strong {
  font-size: clamp(12px, 1.3vw, 16px);
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .bar {
    gap: 6px;
  }
  .brand {
    font-size: 15px;
  }
  .new {
    font-size: 12px;
    padding: 8px;
  }
  .hero h1 {
    max-width: none;
  }
  .hero .snap strong {
    font-size: 11px;
  }
  .scores th div span:last-child {
    overflow-wrap: anywhere;
  }
  .discussion form {
    flex-wrap: wrap;
  }
  .cardlinks button {
    font-size: 12px;
    padding: 4px;
  }
  .cardlinks a {
    font-size: 12px;
  }
  .formrow label {
    width: 100%;
  }
  .sortbar {
    justify-content: flex-start;
  }
  .sectionhead {
    flex-wrap: wrap;
  }
  .search input {
    width: 150px;
  }
  .bar select {
    font-size: 12px;
  }
  footer {
    gap: 8px;
    flex-wrap: wrap;
  }
}
.search input {
  width: clamp(145px, 19vw, 245px);
}

.auth-panel {
  max-width: 450px;
  margin: clamp(25px, 7vh, 70px) auto;
}
.auth-panel h1 {
  margin-top: 0;
}
.auth-panel form {
  display: grid;
  gap: 15px;
}
.auth-panel .btn {
  width: 100%;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.auth-links a,
#account-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-status:empty {
  display: none;
}
#account-link {
  margin-left: auto;
}
#language {
  margin-left: 0;
}
.bar {
  column-gap: clamp(7px, 2vw, 30px);
}
@media (max-width: 650px) {
  .bar {
    column-gap: 6px;
  }
  .bar .brand > span:last-child {
    display: none;
  }
  #account-link {
    white-space: nowrap;
  }
}
