:root {
  color-scheme: dark;
  --bg: #101311;
  --panel: #191d1a;
  --line: #333932;
  --muted: #b1baaf;
  --lime: #c6ef7e;
  font:
    16px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  color: #f2f4eb;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.wrap {
  width: min(1080px, calc(100% - 48px));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: #141815;
}
.bar,
nav,
.brand,
.player,
.hardest,
.sectionTitle,
.controls,
.line,
.profile,
h3 {
  display: flex;
  align-items: center;
}
.bar {
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  font-size: 1.5rem;
  letter-spacing: -0.07em;
  font-weight: 900;
}
.brand span:last-child {
  color: var(--lime);
}
.logo {
  width: 31px;
  height: 29px;
  background: var(--lime);
  color: #1b251b;
  margin-right: 10px;
  display: grid;
  place-items: center;
  transform: skew(-8deg);
  font-size: 1.65rem;
  line-height: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
nav {
  gap: 26px;
}
nav a {
  color: var(--muted);
  font-weight: 600;
}
nav a.active,
a:hover {
  color: var(--lime);
}
.hero {
  position: relative;
  margin: 30px 0 32px;
  border: 1px solid #526443;
  border-radius: 9px;
  overflow: hidden;
  background: #273526;
  height: clamp(210px, 22vw, 265px);
}
[hidden] {
  display: none !important;
}
.hero canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
  object-position: right center;
}
.heroText {
  position: relative;
  padding: 25px 34px;
  height: 100%;
  background: linear-gradient(90deg, #1a2318e8, transparent 68%);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.hero h1,
.profile h1 {
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 5.7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.88;
  margin: 0;
}
.hero em {
  color: var(--lime);
  font-style: normal;
}
.hero p {
  font-size: 1rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin: 16px 0 0;
  color: #d6e0c9;
}
h2 {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin: 0;
}
.sectionTitle {
  gap: 12px;
  margin: 28px 0 18px;
}
.count {
  font: 600 0.87rem monospace;
  background: #252d25;
  color: var(--lime);
  padding: 2px 9px;
  border: 1px solid #46503d;
  border-radius: 5px;
}
.controls,
.line,
footer {
  justify-content: space-between;
}
.controls {
  gap: 12px;
  margin-bottom: 16px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 1.4rem;
}
.search input {
  background: transparent;
  border: 0;
  min-width: 0;
  width: 200px;
  padding: 2px;
  color: inherit;
  font-size: 0.95rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #171b18;
  border-top: 1px solid var(--line);
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  background: #202620;
}
th:last-child,
td:last-child {
  text-align: right;
}
.player {
  gap: 15px;
  font-size: 1.12rem;
  font-weight: 700;
}
.cube {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}
.place,
.numeric,
.score,
.line strong {
  font-family: Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.place {
  color: var(--muted);
  width: 66px;
}
tr:first-child .place,
.score {
  color: var(--lime);
}
.score {
  font-weight: bold;
  font-size: 1.2rem;
}
.hardest {
  gap: 11px;
}
.face {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
}
.hardest small,
small {
  color: var(--muted);
  font-size: 0.82rem;
}
.hardest small {
  display: block;
}
.back {
  display: inline-block;
  margin: 24px 0;
  color: var(--muted);
}
.profile {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  gap: 22px;
}
.profile .cube {
  width: 70px;
  height: 70px;
}
.profile h1 {
  font-size: 2.4rem;
  margin-top: 7px;
}
.profile strong {
  margin-left: auto;
  font-size: 1.75rem;
  color: var(--lime);
}
.line {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.line .face,
h3 .face {
  margin-right: 8px;
}
.line span {
  color: var(--muted);
}
h3 {
  gap: 6px;
  margin: 24px 0 8px;
}
footer {
  display: flex;
  margin: 48px auto 0 !important;
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.85rem;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  background: #101410;
  color: inherit;
  border: 1px solid #4c574c;
  padding: 8px;
  border-radius: 5px;
}
button {
  background: var(--lime);
  color: #172017;
  border: 0;
  border-radius: 5px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 650;
}
button.secondary {
  background: #293029;
  color: #eef4e9;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.admin {
  max-width: 850px;
}
.admin details {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 18px;
  margin: 12px 0;
  border-radius: 6px;
}
.admin summary {
  cursor: pointer;
  font-weight: 700;
}
.fields {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}
.fields label {
  display: grid;
  gap: 4px;
}
.checks {
  max-height: 250px;
  overflow: auto;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin #status {
  position: sticky;
  top: 4px;
  background: var(--bg);
  color: var(--lime);
}
.avatarChoice {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.avatarChoice label {
  cursor: pointer;
}
.empty {
  color: var(--muted);
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .bar {
    min-height: 60px;
  }
  nav {
    gap: 14px;
  }
  .hero {
    height: 195px;
    margin: 18px 0;
  }
  .heroText {
    padding: 18px;
    background: linear-gradient(90deg, #1a2318ec, transparent 85%);
  }
  .hero canvas {
    object-position: 70% center;
  }
  .wide {
    display: none;
  }
  td,
  th {
    padding: 10px;
  }
  .place {
    width: 40px;
  }
  .player {
    gap: 10px;
  }
  .controls {
    align-items: start;
  }
  .search input {
    width: 142px;
  }
  .profile {
    padding: 14px;
    gap: 12px;
  }
  .profile h1 {
    font-size: 1.65rem;
  }
  footer span {
    max-width: 150px;
    text-align: right;
  }
}
