:root {
  color-scheme: dark;
  --bg: #0d1014;
  --panel: #161b21;
  --line: #29313a;
  --muted: #a4aeb8;
  --ink: #f2f5f3;
  --accent: #c5f277;
  --cyan: #80caca;
  font-family: Inter, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #222a32;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
}
button:hover {
  border-color: #9aa986;
  background: #303b34;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: #17210e;
  border-color: var(--accent);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.sidebar {
  position: fixed;
  width: 246px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  background: #101419;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
  display: block;
  line-height: 1.1;
}
.brandmark {
  float: left;
  color: var(--accent);
  font-size: 46px;
  margin-right: 9px;
  line-height: 0.9;
}
.brand-sub {
  display: block;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--muted);
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #8c9b9d;
  margin: 58px 8px 15px;
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  display: flex;
  gap: 13px;
  text-align: left;
  background: none;
  border-color: transparent;
  padding: 13px 10px;
  font-size: 14px;
  color: var(--muted);
}
nav button.active {
  background: #263222;
  color: var(--accent);
  border-color: #394c2e;
}
nav button span {
  font-weight: 500;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-bottom button {
  background: none;
  padding: 12px 0;
  border: 0;
  font-size: 13px;
}
.sidebar-bottom small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--accent);
  margin-right: 6px;
}
.workspace {
  margin-left: 246px;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  gap: 20px;
}
header > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
#account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
#account img {
  width: 154px;
  height: auto;
  vertical-align: middle;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 44px;
  min-height: calc(100vh - 150px);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(30px, 3vw, 46px);
  letter-spacing: -1.7px;
  font-weight: 750;
  margin: 10px 0 12px;
  line-height: 1.1;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-top: 0;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 16px;
}
.heading p {
  margin: 0;
}
.pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 11px;
  white-space: nowrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.pill.lime {
  color: var(--accent);
  border-color: #465e2e;
  background: #20301c;
}
.banner {
  border: 1px solid #4b5a30;
  background: #20281b;
  border-radius: 9px;
  padding: 13px 18px;
  color: #d2e2b6;
  margin-bottom: 25px;
  font-size: 13px;
  line-height: 1.6;
}
.hero {
  min-height: 250px;
  border: 1px solid #354332;
  border-radius: 14px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  background:
    radial-gradient(ellipse at 85% 0, #3b4930, transparent 65%), #171f19;
  margin-bottom: 28px;
}
.hero h2 {
  font-size: 32px;
  line-height: 1.15;
  max-width: 420px;
  letter-spacing: -1px;
  margin: 15px 0;
}
.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 12px;
  transform: rotate(-5deg);
  padding: 10px;
}
.hero-art div {
  height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #657b43, #202f38);
  border: 1px solid #7d8b64;
  border-radius: 10px;
  font-size: 36px;
  box-shadow: 0 15px 30px #0005;
}
.hero-art div:nth-child(2) {
  transform: translateY(-15px);
  background: linear-gradient(160deg, #756b52, #283f44);
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  background: var(--panel);
  margin-bottom: 22px;
}
.panel-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.panel h3 {
  font-size: 15px;
}
.person {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #272f36;
  cursor: pointer;
}
.person input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  margin-left: auto;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #304237;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.person small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.full {
  width: 100%;
  margin-top: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar h2 {
  margin: 0;
}
.toolbar input {
  max-width: 240px;
}
.results-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.game {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.game img {
  width: 100%;
  aspect-ratio: 460/215;
  object-fit: cover;
  background: #26352d;
  display: block;
}
.game-body {
  padding: 18px;
}
.game h3 {
  font-size: 16px;
  line-height: 1.4;
}
.game small {
  color: var(--muted);
  font-size: 11px;
  display: block;
  line-height: 1.7;
}
.game .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.game button {
  padding: 8px 10px;
  font-size: 11px;
}
.game .owned {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.game .store {
  font-size: 11px;
  margin-top: 10px;
  display: inline-block;
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid #3c4853;
  background: #10151a;
  border-radius: 7px;
  padding: 11px;
  width: 100%;
}
input[type="checkbox"] {
  width: auto;
}
label.field {
  display: block;
  margin: 15px 0;
  color: #c4cdd0;
  font-size: 13px;
}
label.field input,
label.field select,
label.field textarea {
  margin-top: 7px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
.row button {
  flex: none;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  border: 1px dashed #3a464e;
  border-radius: 12px;
}
.empty-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 18px;
}
.empty p {
  max-width: 440px;
  margin: 10px auto 20px;
}
.notice {
  border-left: 3px solid var(--cyan);
  background: #1c2c2e;
  padding: 15px;
  font-size: 13px;
  line-height: 1.7;
  margin: 15px 0;
}
.danger {
  color: #ffb7a8;
}
.muted {
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.session {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.session .row {
  margin-top: 14px;
}
.session time {
  color: var(--accent);
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--accent);
  color: #17210e;
  border-radius: 9px;
  padding: 15px 23px;
  box-shadow: 0 10px 30px #0007;
  max-width: 440px;
  display: none;
  z-index: 5;
}
dialog {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid #59644e;
  border-radius: 16px;
  padding: 30px;
  max-width: 540px;
  width: calc(100% - 32px);
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.close {
  float: right;
  border: 0;
  background: none;
  font-size: 23px;
  padding: 0 5px;
}
footer {
  margin: 20px 44px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 20;
  padding: 15px;
  background: var(--accent);
  color: #17210e;
}
.skip:focus {
  top: 10px;
}
.legal {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
}
.legal h1 {
  font-size: 36px;
}
.legal h2 {
  margin-top: 30px;
}
.small {
  font-size: 12px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
.status-error {
  color: #ffbfad;
}
.recommend {
  background: #25341e;
  border-color: #526d38;
}
.invitation {
  word-break: break-all;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.check input {
  width: 18px;
  height: 18px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 55px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 28px;
  }
  header {
    padding: 0 28px;
  }
  .layout {
    grid-template-columns: 220px 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-art {
    gap: 6px;
  }
  .hero {
    padding: 26px;
  }
  .hero-art div {
    height: 110px;
  }
  footer {
    margin: 20px 28px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 20px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 19px;
  }
  .brand-sub {
    font-size: 14px;
  }
  .brandmark {
    font-size: 38px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    margin-top: 22px;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: 65px;
    padding: 0 20px;
  }
  header > span {
    font-size: 8px;
    letter-spacing: 1px;
  }
  main {
    padding: 25px 18px;
  }
  .heading {
    align-items: start;
    gap: 12px;
  }
  .heading .pill {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 25px;
    min-height: auto;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero-art {
    display: none;
  }
  .layout,
  .split {
    grid-template-columns: 1fr;
  }
  .people-panel {
    margin-bottom: 0;
  }
  .people-panel .person {
    display: inline-flex;
    width: calc(50% - 5px);
    padding-right: 12px;
  }
  .grid {
    gap: 12px;
  }
  .game-body {
    padding: 13px;
  }
  .game h3 {
    font-size: 14px;
  }
  .toolbar input {
    max-width: none;
  }
  .toolbar > input {
    flex: 1;
    min-width: 130px;
  }
  h1 {
    font-size: 34px;
  }
  footer {
    margin: 10px 18px;
    display: block;
  }
  footer span {
    display: block;
    margin-top: 10px;
  }
  .panel {
    padding: 20px;
  }
  #toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .hero p {
    font-size: 13px;
  }
}

.primary:hover {
  background: #d4ff90;
  border-color: #d4ff90;
  color: #17210e;
}
.brandmark{width:42px;height:42px}@media(max-width:760px){.brandmark{width:36px;height:36px}}
