@charset "UTF-8";
:root {
  --bg: #101319;
  --panel: #191e26;
  --panel-soft: #202630;
  --ink: #f0f2f6;
  --muted: #9ea8b7;
  --line: #2b323e;
  --accent: #d4ec82;
  --accent-ink: #202819;
  --radius: 12px;
  --green: #a9dba4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.button:hover {
  background: #e1f4a6;
  color: #202819;
}
button:active,
.button:active {
  transform: translateY(1px);
}
.secondary {
  background: var(--panel-soft);
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: #303947;
  color: white;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #9aaaec;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 99;
  padding: 12px;
  background: var(--accent);
  color: #111;
}
.skip-link:focus {
  top: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 8px;
}
.topbar {
  height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-top: 1px;
}
.mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent);
  color: #1c2318;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.15em;
  line-height: 1;
}
.mark span {
  font-size: 17px;
  margin-left: -2px;
  align-self: flex-start;
  margin-top: 3px;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
}
.topbar form {
  margin: 0;
}
.topbar nav button {
  min-height: 32px;
  padding: 5px 11px;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  overflow: hidden;
}
.account-link > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #343e30;
  color: #d4ec82;
  font-size: 12px;
  font-weight: 700;
}
main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px 30px;
  min-height: calc(100vh - 160px);
}
.lobby-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 28px;
}
.lobby-content {
  min-width: 0;
}
.lobby-rail {
  padding-top: 8px;
  position: sticky;
  top: 96px;
  align-self: start;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 5px 12px 12px;
}
.nav-label:not(:first-child) {
  margin-top: 28px;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 4px;
  color: #b6bfcd;
}
.rail-link > span {
  font-size: 17px;
  width: 17px;
  text-align: center;
}
.rail-link small {
  margin-left: auto;
  font-size: 10px;
}
.rail-link.selected {
  background: #273025;
  color: var(--accent);
  font-weight: 650;
}
.rail-link.selected small {
  color: var(--accent);
}
.rail-note {
  border-top: 1px solid var(--line);
  padding: 20px 12px;
  margin-top: 30px;
  font-size: 11px;
  color: var(--muted);
}
.rail-note p {
  margin: 12px 0;
  line-height: 1.8;
}
.rail-note a {
  font-size: 10px;
}
.welcome-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 19px;
}
.welcome-strip h1 {
  margin: 4px 0 0;
  font-size: 23px;
}
.welcome-strip h1 > span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 18px;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 16px;
}
.feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #48543a;
  background: linear-gradient(115deg, #2d3a2e, #1c2c27 65%, #354136);
  border-radius: 12px;
  min-height: 214px;
  padding: 25px 28px;
  display: flex;
  align-items: center;
}
.feature-copy {
  position: relative;
  z-index: 2;
}
.feature-tag {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #d4ec82;
}
.feature h2 {
  font-size: 29px;
  letter-spacing: -0.04em;
  margin: 9px 0 7px;
}
.feature p {
  font-size: 12px;
  color: #bbc7b7;
  line-height: 1.8;
  margin-bottom: 16px;
}
.feature .button {
  min-height: 34px;
  font-size: 11px;
}
.feature-art {
  position: absolute;
  right: 26px;
  top: 16px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  z-index: 1;
  border-radius: 26px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 18px #0006);
}
.feature-watermark {
  position: absolute;
  bottom: -23px;
  right: -7px;
  font-size: 92px;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #ffffff05;
  z-index: 0;
}
.wallet.card {
  padding: 24px;
  margin: 0;
  background: linear-gradient(140deg, #252b34, #1b2028);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wallet h2 {
  font-size: 19px;
  margin: 6px 0 9px;
}
.wallet p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.wallet .eyebrow {
  font-size: 8px;
  color: #bcc5d2;
  letter-spacing: 0.13em;
}
.wallet-value {
  font-size: 32px;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 14px;
  line-height: 1.3;
}
.wallet .text-link {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.button-row {
  display: flex;
  gap: 8px;
}
.button-row > .button:first-child {
  flex: 1;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--muted);
  font-weight: 500;
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.status.good {
  background: #263b2d;
  color: #b3dba6;
}
.status.warn {
  background: #49391f;
  color: #f1c775;
}
.status.quiet {
  background: #2a303a;
  color: #bdc5d1;
}
.announcement-strip {
  border: 1px solid var(--line);
  background: #171c23;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 11px 16px;
  font-size: 12px;
  margin-top: 16px;
}
.announcement-label {
  color: var(--accent);
  font-size: 10px;
  white-space: nowrap;
}
.announcement-strip > div {
  min-width: 0;
  flex: 1;
}
.announcement-strip details + details {
  margin-top: 6px;
}
.announcement-strip summary {
  font-weight: 400;
  color: #b9c2cf;
}
.announcement-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 25px 0 16px;
}
.section-head h1,
.section-head h2 {
  margin: 0;
}
.section-head h2 {
  font-size: 18px;
}
.section-head h2 small {
  font-weight: 400;
  font-size: 11px;
  margin-left: 12px;
}
.section-head > .muted {
  font-size: 10px;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filters a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.filters a span {
  font-size: 10px;
  opacity: 0.75;
}
.filters a.selected {
  background: #293325;
  color: #d4ec82;
}
.search {
  display: flex;
  gap: 6px;
}
.search input {
  width: 175px;
  margin: 0;
  min-width: 0;
  font-size: 12px;
}
.search button {
  min-height: 36px;
  font-size: 12px;
  padding: 6px 12px;
}
.games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}
.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.game:hover {
  border-color: #65794b;
  transform: translateY(-2px);
}
.game-cover {
  position: relative;
  aspect-ratio: 1.3;
  background: #242b32;
  overflow: hidden;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s;
}
.game:hover img {
  transform: scale(1.025);
}
.game-cover .status {
  position: absolute;
  bottom: 7px;
  left: 7px;
  font-size: 9px;
  padding: 3px 6px;
}
.game-cover .status.quiet {
  background: #272e3aeb;
  color: #e0e4eb;
}
.game-cover .status.good {
  background: #d4ec82;
  color: #223117;
}
.game-info {
  padding: 11px 10px 10px;
}
.game-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 5px;
  margin-bottom: 9px;
}
.game-title h3 {
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}
.game-title small {
  font-size: 9px;
}
.game-info form {
  margin: 0;
}
.game-info .button,
.game-info button {
  width: 100%;
  font-size: 11px;
  padding: 5px;
  min-height: 30px;
}
.game-reason {
  font-size: 9px;
  display: flex;
  align-items: center;
  min-height: 30px;
  line-height: 1.5;
  color: #9aa5b5;
}
.is-open {
  border-color: #607444;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.pagination > div {
  display: flex;
  gap: 7px;
}
.pagination a,
.pagination [aria-disabled] {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: inline-block;
}
.pagination a {
  background: var(--panel);
  color: var(--ink);
}
.pagination [aria-disabled] {
  opacity: 0.45;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  min-width: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-heading h2 {
  margin: 0;
}
.card-heading > a {
  font-size: 11px;
  color: var(--muted);
}
.card h2 {
  font-size: 17px;
}
.card > .muted {
  font-size: 12px;
}
.narrow {
  max-width: 560px;
  margin: 48px auto;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.metrics article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
}
.metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.45;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.metrics article:first-child strong {
  color: var(--accent);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 12px 0;
  color: var(--muted);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  background: #12171e;
  color: var(--ink);
  border: 1px solid #3a4351;
  border-radius: 6px;
  padding: 8px 11px;
  margin-top: 6px;
  min-height: 38px;
}
input::placeholder,
textarea::placeholder {
  color: #7e899a;
}
input[type="hidden"] {
  display: none;
}
textarea {
  min-height: 72px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  flex-wrap: wrap;
}
.check a {
  color: var(--accent);
}
.check input {
  width: 15px;
  flex: none;
  min-height: 0;
  accent-color: var(--accent);
  margin: 2px 0;
}
.pill {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.notice {
  padding: 13px 18px;
  background: #333421;
  border: 1px solid #5b6034;
  border-radius: 8px;
  font-size: 12px;
  margin: 16px 0;
}
.notice a {
  color: var(--accent);
  margin-left: 12px;
}
body > .notice {
  max-width: 1200px;
  margin: 16px auto;
}
.auth-grid {
  max-width: 920px;
  margin: 65px auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 90px;
  align-items: center;
}
.auth-grid h1 {
  font-size: 42px;
  letter-spacing: -0.06em;
}
.auth-grid > div > p:not(.eyebrow) {
  color: var(--muted);
}
.auth-grid .card {
  padding: 30px;
}
.auth-grid .card form button {
  width: 100%;
  margin-top: 10px;
}
.auth-grid .card > p {
  font-size: 12px;
  text-align: center;
  margin: 20px 0 0;
  color: var(--muted);
}
.info {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--accent);
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--panel-soft);
  white-space: nowrap;
}
th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td {
  max-width: 340px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #ffffff03;
}
td:first-child {
  color: var(--muted);
}
table input,
table select {
  min-width: 145px;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
details > summary {
  list-style-position: inside;
}
.row-action > summary {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.row-action[open] {
  min-width: 240px;
  max-width: 300px;
}
.row-action form {
  padding: 8px 0 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.row-action form:last-child {
  border-bottom: 0;
}
.row-action button {
  font-size: 11px;
  min-height: 32px;
}
.empty {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  margin-bottom: 12px;
}
.game-frame {
  width: 100%;
  height: 80vh;
  border: 0;
  border-radius: 12px;
  background: #101319;
}
footer {
  max-width: 1600px;
  margin: 10px auto 0;
  padding: 23px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}
.footer-brand {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.footer-brand small {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
}
/* Dedicated operations workspace */
.admin-body {
  --bg: #f3f5f8;
  --panel: #fff;
  --panel-soft: #f3f5f8;
  --ink: #243047;
  --muted: #748096;
  --line: #e4e8ef;
  --accent: #426556;
  --accent-ink: #fff;
  --green: #36734c;
  color-scheme: light;
  font-size: 13px;
}
.admin-body .topbar {
  height: 66px;
  background: white;
  padding: 0 24px;
}
.admin-body .mark {
  background: #253b34;
  color: #d4ec82;
}
.admin-body .brand {
  font-size: 16px;
}
.admin-body .brand small {
  letter-spacing: 0.12em;
}
.admin-body main {
  max-width: none;
  padding: 0;
  min-height: calc(100vh - 66px);
}
.admin-layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: calc(100vh - 66px);
}
.admin-sidebar {
  background: #17242a;
  color: #b6c1c8;
  padding: 25px 13px 18px;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
}
.admin-sidebar .nav-label {
  color: #6e838c;
  margin-bottom: 17px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-sidebar nav > a {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 12px;
}
.admin-sidebar nav > a:hover {
  background: #25393c;
  color: #d3e6cb;
}
.admin-sidebar nav > a.selected {
  background: #30433b;
  color: #d4ec82;
  font-weight: 600;
}
.nav-icon {
  font-size: 17px;
  width: 18px;
  text-align: center;
  line-height: 1;
}
.nav-count {
  margin-left: auto;
  font-weight: 500;
  background: #405247;
  color: #d4ec82;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  font-size: 10px;
  border-top: 1px solid #2c3a3f;
}
.sidebar-bottom .status {
  background: #213a2d;
  color: #b5d7a8;
}
.sidebar-bottom p {
  margin: 9px 0 16px;
  color: #73868c;
}
.admin-content {
  padding: 25px 28px 30px;
  min-width: 0;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
}
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.workspace-head .eyebrow {
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.workspace-head h1 {
  font-size: 24px;
  margin: 0 0 8px;
}
.workspace-head p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.workspace-card {
  padding: 20px;
  margin: 0;
  border-radius: 10px;
}
.admin-body .metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fafbfd;
}
.admin-body .metrics article {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 18px;
}
.admin-body .metrics article:last-child {
  border: 0;
}
.admin-body .metrics strong {
  font-size: 27px;
  overflow-wrap: anywhere;
}
.admin-body .metrics + p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 23px;
}
.admin-body input,
.admin-body textarea,
.admin-body select {
  background: white;
  border-color: #dce2eb;
  color: var(--ink);
  font-size: 12px;
  min-height: 35px;
}
.admin-body button,
.admin-body .button {
  min-height: 35px;
  padding: 7px 13px;
  font-size: 12px;
}
.admin-body button:hover,
.admin-body .button:hover {
  background: #304f40;
  color: white;
}
.admin-body .secondary {
  background: #f5f7fa;
  border-color: var(--line);
  color: var(--ink);
}
.admin-body label {
  color: #627087;
}
.admin-body .status.good {
  background: #e8f3eb;
  color: #3d7852;
}
.admin-body .status.warn {
  background: #fff1d9;
  color: #946218;
}
.admin-body .status.quiet {
  background: #eef0f5;
  color: #798295;
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.filterbar input {
  max-width: 270px;
  margin: 0;
}
.filterbar select {
  width: 145px;
  margin: 0;
}
.filterbar .reset-link {
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
}
.admin-body .table-wrap {
  max-height: calc(100vh - 300px);
}
.admin-body th {
  background: #f6f8fb;
  color: #6a7890;
}
.admin-body th,
.admin-body td {
  padding: 10px 12px;
}
.admin-body tbody tr:hover {
  background: #fafbfd;
}
.admin-body .row-action summary {
  color: #426556;
}
.admin-body .row-action[open] {
  padding: 0 4px;
}
.admin-body .row-action label {
  font-size: 11px;
}
.admin-body .row-action form + form {
  margin-top: 6px;
}
.table-game {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-weight: 500;
}
.table-game img {
  height: 30px;
  width: 36px;
  object-fit: contain;
  background: #f1f2e9;
  border: 1px solid #e4e8e1;
  border-radius: 5px;
}
.admin-body .pagination {
  margin-top: 16px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.quick-actions > a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-actions > a > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #eef4ef;
  color: #52745a;
  border-radius: 7px;
  font-size: 21px;
}
.quick-actions b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.quick-actions small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.quick-actions strong {
  margin-left: auto;
  font-weight: 400;
  color: #8796a6;
}
.overview-lists {
  gap: 20px;
}
.overview-lists > section {
  min-width: 0;
}
.overview-lists .card-heading h2 {
  font-size: 14px;
}
.overview-lists .table-wrap {
  max-height: 340px;
}
.overview-lists th,
.overview-lists td {
  font-size: 11px;
  padding: 10px;
}
.create-panel {
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.create-panel > summary {
  color: #426556;
  font-size: 12px;
}
.create-panel > form {
  max-width: 660px;
  margin: 20px 0 5px;
}
.workspace-card > form[action="/admin/settings"] {
  max-width: 600px;
}
.admin-body footer {
  margin: 0 0 0 204px;
  background: #fff;
}
.admin-body footer a {
  color: #426556;
}
@media (min-width: 1500px) {
  .games {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .feature-art {
    right: 50px;
    width: 210px;
    height: 210px;
    top: 3px;
  }
}
@media (max-width: 1250px) {
  .lobby-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 20px;
  }
  .games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .feature-art {
    right: 10px;
    width: 150px;
    height: 150px;
    top: 35px;
  }
  .feature h2 {
    font-size: 25px;
  }
  .feature {
    padding: 23px;
  }
  .feature-copy {
    max-width: 70%;
  }
  .wallet.card {
    padding: 20px;
  }
  .welcome-strip h1 > span {
    display: none;
  }
  .admin-content {
    padding: 22px;
  }
  .quick-actions {
    gap: 10px;
  }
  .quick-actions > a {
    padding: 12px;
    gap: 8px;
  }
  .quick-actions small {
    font-size: 9px;
  }
  .admin-body .metrics article {
    padding: 16px 13px;
  }
}
@media (max-width: 1000px) {
  .games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .topbar {
    padding: 0 22px;
  }
  .topbar nav {
    gap: 16px;
  }
  main {
    padding: 22px;
  }
  .lobby-layout {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }
  .rail-link {
    padding: 10px 8px;
    gap: 7px;
  }
  .rail-link small {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .wallet.card {
    display: none;
  }
  .feature {
    min-height: 195px;
  }
  .feature-art {
    right: 40px;
    top: 10px;
    width: 180px;
    height: 180px;
  }
  .admin-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding: 20px 9px;
  }
  .admin-sidebar nav > a {
    padding: 10px;
    gap: 8px;
  }
  .admin-content {
    padding: 20px;
  }
  .admin-body footer {
    margin-left: 175px;
  }
  .admin-body .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
  }
  .admin-body .metrics article {
    background: #fafbfd;
    border: 0;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .quick-actions > a {
    padding: 11px 13px;
  }
  .overview-lists {
    grid-template-columns: 1fr;
  }
  .auth-grid {
    gap: 45px;
  }
  .catalog-toolbar {
    flex-wrap: wrap;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 72px;
    padding: 13px 18px;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 7px;
  }
  .topbar nav {
    gap: 14px;
    font-size: 12px;
  }
  .topbar nav > a[href="/profile"]:not(.account-link) {
    display: none;
  }
  .account-link > span:last-child {
    max-width: 100px;
  }
  .topbar nav button {
    font-size: 11px;
  }
  .topbar nav .button {
    min-height: 32px;
    padding: 5px 11px;
  }
  .lobby-layout {
    display: block;
  }
  .lobby-rail {
    position: static;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 0 17px;
    overflow: auto;
  }
  .lobby-rail .nav-label,
  .lobby-rail .rail-note,
  .lobby-rail .rail-link[href^="/profile"] {
    display: none;
  }
  .rail-link {
    white-space: nowrap;
    margin: 0;
    padding: 8px 12px;
  }
  .rail-link small {
    display: inline;
  }
  .welcome-strip {
    margin: 0 0 16px;
  }
  .welcome-strip h1 {
    font-size: 21px;
  }
  .welcome-strip .eyebrow {
    font-size: 8px;
  }
  .welcome-strip > .status {
    font-size: 10px;
  }
  .feature {
    min-height: 190px;
  }
  .feature-art {
    width: 175px;
    height: 175px;
    right: 22px;
    top: 8px;
  }
  .games {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .game-title small {
    display: none;
  }
  .game-reason {
    font-size: 9px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .metrics {
    gap: 9px;
  }
  .metrics article {
    padding: 16px 12px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .auth-grid {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin: 25px auto;
    gap: 25px;
  }
  .auth-grid h1 {
    font-size: 31px;
    margin-bottom: 12px;
  }
  .info {
    margin-top: 18px;
    padding-top: 12px;
  }
  .auth-grid .card {
    padding: 25px;
  }
  .admin-body .topbar {
    height: auto;
    min-height: 66px;
    padding: 13px 18px;
  }
  .admin-layout {
    display: block;
    min-height: 0;
  }
  .admin-sidebar {
    position: sticky;
    top: 0;
    height: auto;
    padding: 9px 14px;
    display: block;
    z-index: 8;
  }
  .admin-sidebar .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  .admin-sidebar nav > a {
    white-space: nowrap;
    padding: 7px 10px;
    font-size: 11px;
  }
  .nav-icon {
    display: none;
  }
  .nav-count {
    margin-left: 3px;
  }
  .admin-content {
    padding: 20px 16px;
  }
  .workspace-head {
    margin-bottom: 17px;
    gap: 12px;
  }
  .workspace-head h1 {
    font-size: 22px;
  }
  .workspace-head p:last-child {
    font-size: 11px;
  }
  .workspace-card {
    padding: 15px;
  }
  .admin-body .table-wrap {
    max-height: 65vh;
  }
  .admin-body footer {
    margin: 0;
  }
  .filterbar {
    flex-wrap: wrap;
    gap: 7px;
  }
  .filterbar input {
    max-width: none;
    flex: 1;
    min-width: 170px;
  }
  .filterbar select {
    width: 125px;
  }
  .filterbar button {
    min-width: 65px;
  }
  .admin-body .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-body .metrics article {
    padding: 14px 10px;
  }
  .admin-body .metrics strong {
    font-size: 23px;
  }
  .quick-actions {
    gap: 9px;
    margin-bottom: 22px;
  }
  .overview-lists {
    gap: 24px;
  }
  footer {
    padding: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .create-panel {
    padding: 12px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 18px 15px;
  }
  .topbar {
    gap: 12px;
  }
  .topbar nav {
    gap: 12px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 11px;
    justify-content: flex-end;
  }
  .topbar nav > a:first-child {
    margin-right: auto;
  }
  .brand {
    font-size: 17px;
  }
  .feature {
    padding: 22px 20px;
    min-height: 194px;
  }
  .feature h2 {
    font-size: 24px;
  }
  .feature p {
    font-size: 11px;
    max-width: 195px;
  }
  .feature-copy {
    max-width: 78%;
  }
  .feature-art {
    right: -30px;
    top: 36px;
    width: 140px;
    height: 140px;
    opacity: 0.55;
  }
  .feature-tag {
    font-size: 9px;
  }
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .game-cover {
    aspect-ratio: 1.05;
  }
  .game-info {
    padding: 9px 7px;
  }
  .game-title {
    min-height: 30px;
    align-items: flex-start;
    margin-bottom: 4px;
  }
  .game-title h3 {
    font-size: 11px;
  }
  .game-info button,
  .game-info .button {
    font-size: 10px;
    gap: 3px;
    min-height: 30px;
  }
  .game-reason {
    font-size: 8px;
    line-height: 1.6;
    min-height: 32px;
  }
  .game-cover .status {
    font-size: 8px;
    padding: 2px 4px;
    bottom: 5px;
    left: 5px;
    gap: 3px;
  }
  .game-cover .status i {
    width: 4px;
    height: 4px;
  }
  .section-head {
    margin: 21px 0 13px;
  }
  .section-head h2 {
    font-size: 17px;
  }
  .section-head > .muted {
    display: none;
  }
  .filters a {
    font-size: 11px;
    padding: 6px 9px;
  }
  .catalog-toolbar {
    gap: 10px;
  }
  .search {
    width: 100%;
    flex-basis: 100%;
  }
  .announcement-strip {
    padding: 10px;
    gap: 12px;
    font-size: 11px;
  }
  .announcement-label {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .metrics span {
    font-size: 9px;
  }
  .metrics strong {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .metrics article {
    padding: 13px 10px;
  }
  .card {
    padding: 18px;
  }
  .card-heading h2 {
    font-size: 16px;
  }
  .section-head h1 {
    font-size: 23px;
  }
  .section-head .eyebrow {
    font-size: 9px;
  }
  .section-head .pill {
    font-size: 9px;
    padding: 4px 7px;
  }
  .pagination {
    font-size: 10px;
    gap: 8px;
  }
  .pagination a,
  .pagination [aria-disabled] {
    padding: 5px 7px;
  }
  .pagination > div {
    gap: 5px;
  }
  .admin-body .topbar nav {
    padding-top: 10px;
  }
  .admin-body .metrics strong {
    font-size: 21px;
  }
  .admin-body .metrics span {
    font-size: 10px;
  }
  .admin-content {
    padding: 18px 12px;
  }
  .workspace-card {
    padding: 12px;
  }
  .workspace-head .pill {
    font-size: 9px;
  }
  .admin-body .filterbar input {
    min-width: 145px;
  }
  .admin-body .filterbar select {
    width: 115px;
  }
  .admin-body td,
  .admin-body th {
    padding: 10px;
    font-size: 11px;
  }
  .admin-body .table-wrap {
    max-height: 62vh;
  }
  .workspace-head p:last-child {
    max-width: 260px;
  }
  .table-game {
    gap: 6px;
  }
  .table-game img {
    width: 30px;
    height: 27px;
  }
  .auth-grid .card {
    padding: 23px;
  }
  .narrow {
    margin: 20px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Keep compact controls readable on narrow screens. */
button,
.button {
  white-space: nowrap;
  flex-shrink: 0;
}
td:first-child {
  white-space: nowrap;
}
.table-hint {
  display: none;
}
@media (max-width: 1000px) {
  .player-wallet.card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 15px;
    padding: 12px 18px;
  }
  .player-wallet .eyebrow,
  .player-wallet .text-link {
    display: none;
  }
  .player-wallet > .muted {
    font-size: 10px;
  }
  .player-wallet .wallet-value {
    grid-column: 1;
    grid-row: 2;
    font-size: 22px;
    margin: 0;
  }
  .player-wallet > .button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}
@media (max-width: 760px) {
  .table-hint {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
    margin: 0 0 8px;
  }
}
@media (max-width: 480px) {
  .welcome-strip .eyebrow {
    display: none;
  }
  .feature {
    min-height: 146px;
    padding: 18px 20px;
  }
  .feature p {
    display: none;
  }
  .feature h2 {
    margin: 8px 0 16px;
  }
  .feature-art {
    top: 9px;
    width: 130px;
    height: 130px;
  }
}

.profile-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.profile-shortcuts a {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.profile-shortcuts a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.security-panel {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.security-panel summary {
  font-size: 12px;
  color: var(--accent);
}
.pending-message {
  padding: 20px;
  border: 1px solid #576247;
  border-radius: 8px;
  background: #283124;
  font-size: 12px;
}
.pending-message b {
  color: var(--accent);
}
.pending-message p {
  color: #bbc8b1;
  margin: 9px 0 16px;
}
.pending-message a {
  color: var(--accent);
}
.section-head h1 {
  overflow-wrap: anywhere;
}

/* Account workspace and contextual operations */
.feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #263c2c;
  border: 1px solid #45623d;
  color: #cce6bd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 12px;
}
.feedback > span {
  font-weight: 800;
  font-size: 16px;
}
.admin-body .feedback {
  background: #eaf5ec;
  border-color: #cce5d1;
  color: #346449;
}
.mobile-dock {
  display: none;
}
.account-head {
  margin-top: 5px;
}
.account-head p:last-child {
  font-size: 12px;
  margin: 8px 0 0;
}
.account-metrics {
  margin: 22px 0;
}
.account-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 24px;
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #151a21;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 7px;
  white-space: nowrap;
}
.account-nav a > span {
  font-size: 17px;
}
.account-nav a > b {
  font-size: 10px;
  background: #4a4327;
  padding: 1px 6px;
  border-radius: 4px;
  color: #f1d28b;
  margin-left: auto;
}
.account-nav a.selected {
  background: #293626;
  color: var(--accent);
  font-weight: 600;
}
.account-content {
  min-width: 0;
}
.account-content .card-heading h2 {
  font-size: 15px;
}
.account-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(120deg, #283428, #1c252a);
  border-color: #3a4736;
}
.account-welcome p:last-child {
  margin: 0;
  font-size: 12px;
}
.account-welcome h2 {
  margin-bottom: 8px;
  font-size: 22px;
}
.request-highlight {
  padding: 6px 0;
  font-size: 12px;
}
.request-highlight > strong {
  display: block;
  font-size: 25px;
  line-height: 1.35;
  margin: 12px 0 10px;
  letter-spacing: -0.03em;
}
.request-highlight small {
  font-size: 12px;
  font-weight: 400;
}
.request-highlight p {
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.request-highlight > a {
  color: var(--accent);
  font-size: 12px;
}
.request-highlight > .button {
  color: var(--accent-ink);
}
.account-actions {
  display: flex;
  flex-direction: column;
}
.account-actions > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.account-actions > a:last-child {
  border: 0;
}
.account-actions > a > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent);
  font-size: 19px;
}
.account-actions b,
.account-actions small {
  display: block;
}
.account-actions b {
  font-size: 12px;
  font-weight: 600;
}
.account-actions small {
  font-size: 10px;
  margin-top: 3px;
}
.account-actions i {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
}
.account-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.account-section-title h2 {
  margin: 0;
  font-size: 18px;
}
.account-section-title > span {
  font-size: 11px;
  color: var(--muted);
}
.credit-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}
.credit-workspace > .card {
  align-self: start;
}
.credit-workspace .card {
  padding: 20px;
}
.credit-workspace .card > h2 {
  font-size: 16px;
}
.credit-workspace .pending-message {
  padding: 16px;
}
.credit-workspace .pending-message p {
  margin: 9px 0 0;
}
.status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.status-tabs a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.status-tabs a b {
  font-size: 10px;
  font-weight: 500;
}
.status-tabs a.selected {
  background: #2d3727;
  color: var(--accent);
  border-color: #576448;
}
.cell-note {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 6px;
  min-width: 120px;
  max-width: 260px;
}
.account-content .filterbar select {
  width: 150px;
  margin: 0;
}
.account-content .filterbar {
  margin: 0 0 18px;
}
.account-content .table-wrap {
  max-height: 65vh;
}
.account-content .table-wrap td {
  font-size: 12px;
}
.account-content .table-wrap form {
  margin: 0;
}
.account-content .table-wrap button {
  min-height: 31px;
  font-size: 11px;
  padding: 5px 10px;
}
.amount {
  font-weight: 600;
  white-space: nowrap;
}
.amount.positive {
  color: #b6db93;
}
.amount.negative {
  color: #f2aaa3;
}
.security-workspace {
  max-width: 680px;
}
.security-workspace form {
  max-width: 470px;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.recent-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.recent-grid img {
  width: 76px;
  height: 82px;
  object-fit: contain;
  background: #252c35;
  border-radius: 7px;
}
.recent-grid h3 {
  margin: 0 0 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.recent-grid small {
  display: block;
  font-size: 10px;
}
.recent-grid form {
  margin: 9px 0 0;
}
.recent-grid button {
  font-size: 10px;
  min-height: 28px;
  padding: 4px 10px;
}
.continue-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171d24;
  flex-wrap: wrap;
}
.continue-strip > span {
  font-size: 11px;
  margin-right: 4px;
}
.continue-strip article {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.continue-strip img {
  width: 34px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background: #283039;
}
.continue-strip strong {
  font-size: 11px;
  font-weight: 600;
}
.continue-strip form {
  margin: 0;
}
.continue-strip button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 10px;
}
.continue-strip > a {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.filter-context {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #f5f8f5;
  color: #587261;
  margin: -4px 0 16px;
}
.filter-context a {
  color: #426556;
}
.admin-body .filterbar select {
  width: 133px;
}
.player-link {
  font-weight: 500;
  color: #355f4b;
  white-space: nowrap;
}
.player-link span {
  font-size: 10px;
  color: #8a9b8e;
}
.detail-link {
  font-size: 11px;
  white-space: nowrap;
  color: #426556;
  display: inline-block;
  margin-bottom: 5px;
}
.back-link {
  font-size: 11px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 19px;
}
.player-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 21px;
}
.player-avatar {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  background: #e7efdf;
  color: #536d47;
  font-size: 22px;
  border: 1px solid #d9e6cf;
  border-radius: 12px;
}
.player-heading h2 {
  font-size: 21px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.player-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.player-heading p:last-child {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.player-heading > .status {
  margin-left: auto;
}
.admin-body .metrics.player-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}
.player-operation {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}
.player-operation .card-heading h2 {
  font-size: 14px;
}
.player-operation .card-heading small {
  font-size: 10px;
}
.user-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.user-actions > details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbfd;
  padding: 10px 13px;
  min-width: 0;
}
.user-actions summary {
  font-size: 12px;
  color: #426556;
}
.operation-target {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 3px;
  overflow-wrap: anywhere;
}
.user-actions form {
  margin: 0;
}
.user-actions label {
  font-size: 11px;
}
.user-actions button {
  font-size: 11px;
  min-height: 32px;
}
.row-action .user-actions {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.row-action .user-actions details {
  padding: 8px;
}
.row-action .user-actions form {
  padding-top: 0;
}
.player-records {
  gap: 22px;
}
.player-records section {
  min-width: 0;
}
.player-records .card-heading h2 {
  font-size: 14px;
}
.player-records .table-wrap {
  max-height: 360px;
}
.player-records td {
  font-size: 11px;
}
@media (max-width: 1200px) {
  .credit-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .account-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }
  .account-nav a {
    padding: 10px 8px;
  }
  .credit-workspace .card {
    padding: 16px;
  }
  .filterbar {
    flex-wrap: wrap;
  }
  .admin-body .filterbar input {
    flex: 1;
    min-width: 180px;
  }
  .player-records {
    grid-template-columns: 1fr;
  }
  .recent-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .credit-workspace {
    grid-template-columns: 1fr;
  }
  .credit-workspace #credits {
    max-width: none;
  }
  .credit-workspace #credits form {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 14px;
    align-items: start;
  }
  .credit-workspace #credits form button {
    justify-self: start;
    align-self: end;
  }
  .credit-workspace textarea {
    min-height: 66px;
  }
  .account-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .account-layout {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .account-nav {
    padding: 6px;
  }
  .user-actions {
    grid-template-columns: 1fr;
  }
  .player-heading p:last-child {
    line-height: 1.7;
  }
}
@media (max-width: 760px) {
  .account-layout {
    display: block;
  }
  .account-nav {
    position: static;
    flex-direction: row;
    overflow: auto;
    margin-bottom: 18px;
    gap: 4px;
    padding: 6px;
  }
  .account-nav a {
    padding: 8px 10px;
    font-size: 11px;
  }
  .account-nav a > span {
    font-size: 14px;
  }
  .account-metrics {
    margin: 18px 0;
  }
  .account-head {
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .account-head .button {
    font-size: 11px;
    min-height: 32px;
    padding: 6px 10px;
  }
  .account-head h1 {
    font-size: 23px;
  }
  .account-head p:last-child {
    font-size: 11px;
  }
  .account-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .account-section-title h2 {
    font-size: 18px;
  }
  .account-section-title > span {
    font-size: 10px;
  }
  .account-welcome h2 {
    font-size: 20px;
  }
  .credit-workspace #credits form {
    display: block;
  }
  .credit-workspace .pending-message {
    font-size: 11px;
  }
  .continue-strip {
    gap: 9px;
  }
  .continue-strip article {
    border-right: 0;
    flex: 1;
    min-width: 210px;
  }
  .continue-strip > span {
    width: 100%;
  }
  .continue-strip article form {
    margin-left: auto;
  }
  .player-heading {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .player-heading > div:nth-child(2) {
    flex: 1;
    min-width: 190px;
  }
  .player-heading > .status {
    margin-left: 58px;
  }
  .player-heading h2 {
    font-size: 19px;
  }
  .player-heading p:last-child {
    font-size: 10px;
  }
  .player-avatar {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
  .player-operation {
    padding: 12px;
  }
  .player-records {
    gap: 20px;
  }
  .public-body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 9px calc(8px + env(safe-area-inset-bottom));
    background: #181e27f5;
    border-top: 1px solid #343e4d;
    backdrop-filter: blur(12px);
  }
  .mobile-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-size: 19px;
    color: #c5ceba;
    min-height: 43px;
  }
  .mobile-dock a span {
    font-size: 10px;
    color: #b1bdcb;
  }
  .mobile-dock a:hover,
  .mobile-dock a:hover span {
    color: var(--accent);
  }
  .account-content .table-wrap td {
    font-size: 11px;
  }
  .account-content .filterbar select {
    width: 140px;
  }
  .account-content .card {
    padding: 17px;
  }
  .account-content .two-columns {
    gap: 0;
  }
  .player-records .two-columns {
    gap: 18px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-dock {
    background: #181e27;
    backdrop-filter: none;
  }
}

.mobile-dock a.selected {
  color: var(--accent);
  background: #293426;
  border-radius: 7px;
}
.mobile-dock a.selected span {
  color: var(--accent);
}

/* Shared vector language and a consistent compact reading rhythm. */
.icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
button,
.button {
  gap: 8px;
}
button .icon,
.button .icon {
  width: 16px;
  height: 16px;
}
.mark {
  background: none;
  letter-spacing: normal;
}
.mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.admin-body .mark {
  background: none;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}
.rail-link > span,
.account-nav a > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.topbar nav {
  gap: 19px;
  min-width: 0;
}
.topbar nav > a {
  white-space: nowrap;
}
.lobby-layout {
  gap: 24px;
}
.welcome-strip {
  margin-bottom: 18px;
}
.feature-grid {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 16px;
  margin-bottom: 24px;
}
.feature {
  min-height: 204px;
  padding: 24px 28px;
}
.feature-copy {
  max-width: 66%;
}
.feature h2 {
  font-size: 28px;
  margin: 12px 0 9px;
}
.feature p {
  margin-bottom: 17px;
}
.feature-art {
  width: 158px;
  height: 175px;
  right: 35px;
  bottom: 12px;
  transform: rotate(-7deg);
}
.wallet.card {
  padding: 24px;
}
.wallet h2 {
  font-size: 18px;
}
.game-cover {
  aspect-ratio: 1.29;
  background: linear-gradient(135deg, #26323a, #1e2530);
}
.game-cover .status {
  font-size: 10px;
  padding: 3px 6px;
  bottom: 6px;
}
.game-info {
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
}
.game-title {
  display: block;
  min-height: 51px;
  margin-bottom: 6px;
}
.game-title h3 {
  font-size: 13px;
  line-height: 1.4;
}
.game-title small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.game-reason {
  font-size: 10px;
  line-height: 1.5;
}
.game-info button,
.game-info .button {
  min-height: 34px;
}
.catalog-toolbar {
  gap: 14px;
  align-items: center;
}
.search {
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search > .icon {
  color: var(--muted);
  width: 16px;
  height: 16px;
}
.search input {
  min-width: 0;
}
.clear-search {
  display: inline-flex;
  margin: -3px 0 14px;
  font-size: 11px;
  color: var(--accent);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
}
.empty > .icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin-bottom: 5px;
  opacity: 0.75;
}
.empty p {
  margin: 0;
  font-size: 12px;
}
.account-head h1 {
  overflow-wrap: anywhere;
}
.account-head > div {
  min-width: 0;
}
.account-actions > a > span {
  width: 36px;
  height: 36px;
}
.account-welcome {
  padding: 22px;
}
.account-metrics strong,
.metrics strong {
  font-variant-numeric: tabular-nums;
}
.feedback > .icon {
  width: 20px;
  height: 20px;
}
.announcement-label {
  white-space: nowrap;
}
.announcement-strip details {
  overflow-wrap: anywhere;
}
.admin-content {
  padding: 24px;
}
.workspace-head {
  margin-bottom: 20px;
}
.workspace-card {
  padding: 20px;
}
.admin-body .filterbar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  gap: 10px;
}
.admin-body .filterbar input {
  flex: 1;
  min-width: 180px;
}
.admin-body .filterbar button {
  min-height: 36px;
}
.admin-body .filterbar .reset-link {
  padding: 8px 4px;
  white-space: nowrap;
}
.admin-body .table-wrap {
  border-radius: 8px;
  scrollbar-gutter: stable;
}
.admin-body table td {
  padding: 8px 11px;
}
.admin-body table th {
  padding: 11px;
  font-size: 11px;
}
.admin-body tbody tr:hover td {
  background: #f5f8f5;
}
.admin-body .table-game {
  min-width: 190px;
  max-width: 280px;
  white-space: normal;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.admin-body .table-game img {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  border-radius: 7px;
  background: #203039;
}
.admin-body .quick-actions > a > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #e9f0e5;
  color: #527345;
  border-radius: 9px;
}
.admin-body .quick-actions .icon {
  width: 21px;
  height: 21px;
}
.admin-body .status {
  white-space: nowrap;
}
.player-operation .user-actions details {
  background: #f8fafb;
}
.player-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.admin-body .metrics article {
  min-width: 0;
}
.admin-body .metrics article strong {
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  main {
    max-width: 1680px;
  }
  .games {
    gap: 16px;
  }
  .game-title h3 {
    font-size: 14px;
  }
}
@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .feature-art {
    width: 132px;
    right: 18px;
  }
  .feature {
    padding: 22px;
  }
  .feature-copy {
    max-width: 69%;
  }
  .feature h2 {
    font-size: 25px;
  }
  .wallet.card {
    padding: 20px;
  }
  .admin-content {
    padding: 20px;
  }
}
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .feature-art {
    width: 118px;
    right: 10px;
  }
  .feature-copy {
    max-width: 74%;
  }
  .feature h2 {
    font-size: 23px;
  }
  .wallet.card {
    padding: 17px;
  }
  .workspace-card {
    padding: 16px;
  }
  .topbar nav {
    gap: 13px;
  }
}
@media (max-width: 760px) {
  .icon {
    width: 18px;
    height: 18px;
  }
  .topbar nav {
    gap: 10px;
  }
  .topbar nav .account-link {
    max-width: calc(100vw - 170px);
  }
  .topbar nav button {
    min-height: 34px;
  }
  .feature-grid {
    display: block;
    margin-bottom: 20px;
  }
  .feature {
    min-height: 190px;
    padding: 20px;
  }
  .feature-art {
    width: 132px;
    height: 155px;
    right: 15px;
    bottom: 8px;
  }
  .feature-copy {
    max-width: 65%;
  }
  .feature h2 {
    font-size: 24px;
  }
  .wallet.card {
    margin-top: 12px;
    padding: 16px;
  }
  .wallet .wallet-value {
    font-size: 26px;
  }
  .game-title {
    min-height: 49px;
  }
  .game-title h3 {
    font-size: 12px;
  }
  .game-title small {
    font-size: 10px;
  }
  .game-info {
    padding: 10px 8px 8px;
  }
  .game-reason {
    font-size: 10px;
  }
  .game-info button,
  .game-info .button {
    min-height: 36px;
    font-size: 11px;
  }
  .catalog-toolbar {
    gap: 11px;
  }
  .catalog-toolbar .search {
    width: 100%;
  }
  .catalog-toolbar .search input {
    flex: 1;
  }
  .clear-search {
    margin-top: 0;
  }
  .mobile-dock a > .icon {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
  }
  .account-head h1 {
    font-size: 23px;
  }
  .admin-content {
    padding: 18px 12px;
  }
  .workspace-head {
    margin-bottom: 16px;
  }
  .workspace-card {
    padding: 12px;
  }
  .admin-body .filterbar {
    padding: 10px;
  }
  .admin-body .filterbar input {
    flex-basis: 100%;
    min-width: 0;
  }
  .admin-body .filterbar select {
    flex: 1;
    min-width: 115px;
  }
  .admin-body .filterbar button {
    min-height: 38px;
  }
  .admin-body table td {
    padding: 10px;
  }
  .admin-body .table-game {
    min-width: 175px;
  }
  .admin-sidebar .nav-icon {
    display: flex;
  }
  .admin-sidebar nav > a {
    gap: 7px;
    padding: 10px;
  }
  .admin-sidebar {
    padding: 6px 8px;
  }
  .admin-sidebar .icon {
    width: 16px;
    height: 16px;
  }
  .account-nav a {
    gap: 6px;
  }
  .table-hint {
    font-size: 10px;
  }
  .player-heading > div:nth-child(2) {
    min-width: 155px;
  }
}
@media (max-width: 479px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-title h3 {
    font-size: 13px;
  }
  .game-title {
    min-height: 51px;
  }
  .game-cover .status {
    font-size: 10px;
  }
  .game-info {
    padding: 10px;
  }
  .feature {
    padding: 18px;
  }
  .feature-copy {
    max-width: 66%;
  }
  .feature-art {
    width: 108px;
    right: 6px;
    height: 143px;
  }
  .feature h2 {
    font-size: 22px;
  }
  .feature-copy p {
    font-size: 11px;
  }
  .topbar nav > a:first-child {
    font-size: 11px;
  }
  .topbar nav button .icon {
    display: none;
  }
  .account-head h1 {
    font-size: 21px;
  }
  .account-metrics strong {
    font-size: 22px;
  }
  .admin-body .metrics strong {
    font-size: 23px;
  }
  .account-head .button {
    margin-top: 4px;
  }
}
@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-copy {
    max-width: 70%;
  }
  .feature-art {
    width: 160px;
    height: 175px;
    right: 30px;
    top: 10px;
  }
}
@media (max-width: 760px) {
  .topbar,
  .admin-body .topbar {
    min-height: 64px;
    height: 64px;
    padding: 10px 16px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .topbar nav {
    width: auto;
    border: 0;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
  }
  .topbar nav > a[href="/"] {
    display: none;
  }
  .brand,
  .admin-body .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand small {
    font-size: 6px;
  }
  .mark {
    width: 32px;
    height: 32px;
    flex: none;
  }
  .topbar nav .account-link {
    max-width: 110px;
  }
  .account-link > .avatar {
    width: 26px;
    height: 26px;
  }
  .topbar nav .button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .feature {
    min-height: 158px;
  }
  .feature-art {
    width: 112px;
    height: 132px;
    right: 12px;
    top: 12px;
  }
  .feature h2 {
    font-size: 23px;
    margin: 10px 0 12px;
  }
  .feature-copy {
    max-width: 65%;
  }
  .game-title {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .topbar nav .account-link {
    max-width: 64px;
    gap: 5px;
  }
  .topbar nav {
    gap: 7px;
  }
  .topbar nav .button {
    padding: 6px 8px;
  }
  .feature-art {
    width: 97px;
    right: 5px;
  }
  .feature h2 {
    font-size: 20px;
  }
}
/* Keep descriptive columns readable inside independently scrollable tables. */
th.cell-description,
td.cell-description {
  min-width: 170px;
  max-width: 320px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
th.cell-identity,
td.cell-identity {
  min-width: 130px;
}
th.cell-time,
td.cell-time {
  min-width: 144px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th.cell-action,
td.cell-action {
  min-width: 180px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  th.cell-description,
  td.cell-description {
    min-width: 155px;
  }
  .admin-body .filterbar .reset-link {
    margin-left: auto;
  }
}
