:root {
  --ink: #070d30;
  --pink: #fa169e;
  --edge: #7d8188;
  --silver: #e4e5e6;
}
body {
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: #b8d0df;
  background-image:
    linear-gradient(#ffffff26 1px, transparent 1px),
    linear-gradient(90deg, #ffffff26 1px, transparent 1px);
  background-size: 5px 5px;
  font-size: 16px;
}
.market-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 680px;
  background: #38b5ed none center top/cover no-repeat;
  z-index: -1;
}
.market-header {
  height: 76px;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 34px;
  position: relative;
  color: #050e2d;
}
.market-brand {
  font-family: Pixel, monospace;
  font-size: 40px;
  text-decoration: none;
  line-height: 0.8;
  white-space: nowrap;
}
.market-brand sup {
  font: 12px Arial;
}
.market-brand small {
  display: block;
  font: 11px/1.6 Arial;
  letter-spacing: 1.5px;
  color: #336987;
}
.market-header nav {
  display: flex;
  gap: 36px;
  margin: 0 0 0 auto;
}
.market-header nav a {
  background: transparent;
  color: inherit;
  border-radius: 0;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  position: relative;
}
.market-header nav a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pink);
  border-radius: 4px;
}
.compact-name {
  display: none;
  font: 50px Pixel;
  text-decoration: none;
}
.street-banner {
  height: 505px;
  padding: 40px 7% 0;
  max-width: 1440px;
  margin: auto;
  color: white;
}
.street-banner h1 {
  font: clamp(72px, 8.8vw, 145px)/0.9 Pixel;
  letter-spacing: 2px;
  color: white;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}
.street-banner h1 sup {
  font: 16px Arial;
  vertical-align: top;
}
.street-banner > p {
  font-size: 22px;
  font-weight: bold;
  margin: 8px 0 0 13%;
}
.shell {
  display: block;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 28px;
}
main {
  min-width: 0;
}
.topline {
  height: 0;
  overflow: hidden;
  margin: 0;
}
.audio-bar {
  position: fixed;
  right: 18px;
  bottom: 10px;
  z-index: 20;
  background: #e7e8e9ed;
  border: 1px solid #9ea2aa;
  border-radius: 4px;
  padding: 5px;
  color: var(--ink);
  box-shadow: 0 2px 5px #17223530;
  max-width: 95vw;
}
.audio-bar button {
  color: var(--ink);
  padding: 4px 6px;
  background: #ececee;
  font-size: 10px;
}
.audio-bar label {
  font-size: 10px;
}
.audio-bar input {
  width: 62px;
}
.audio-bar small {
  display: none;
}
.panel,
.card {
  background: linear-gradient(115deg, #f4f4f4, #dadcde);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 3px #ffffff70,
    3px 4px 0 #28394940;
  position: relative;
}
.panel {
  padding: 18px;
  margin-bottom: 16px;
  clip-path: polygon(
    0 15px,
    15px 0,
    calc(100% - 25px) 0,
    100% 25px,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    15px 100%,
    0 calc(100% - 15px)
  );
  outline: 1px solid #46506b;
}
.panel:before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed #727889;
  pointer-events: none;
  clip-path: inherit;
}
.panel > * {
  position: relative;
}
.card {
  padding: 16px;
  border: 1px solid #b7b9be;
  box-shadow: none;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h2 {
  font-size: 43px;
}
h3 {
  font-size: 27px;
}
button,
.button {
  color: var(--ink);
  background: linear-gradient(#f4f4f6, #c8cace);
  border: 1px solid #8d9098;
  border-radius: 4px;
  box-shadow: inset 0 1px #fff;
  font-size: 16px;
  padding: 10px 15px;
  display: inline-block;
  text-decoration: none;
}
button.primary,
.button.primary {
  background: linear-gradient(#fb27a7, #f40897);
  border: 1px solid #d1007c;
  color: white;
  box-shadow: inset 0 1px #ff74c7;
  font-family: Pixel;
  font-size: 29px;
}
button:disabled {
  opacity: 0.55;
}
input,
select {
  background: #fff;
  border: 1px solid #a5b2c9;
  border-radius: 4px;
  padding: 10px;
  color: var(--ink);
}
input::placeholder {
  font-style: italic;
  color: #98a3b9;
}
label {
  font-weight: normal;
  font-size: 14px;
}
.home-board {
  display: grid;
  grid-template-columns: 290px 1fr 300px;
  gap: 16px;
  padding: 18px 24px 0;
  margin-top: -5px;
}
.menu-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #b9babc65;
  border-radius: 4px;
}
.menu-panel h3 {
  font: 12px Arial;
  color: #91949e;
  letter-spacing: 1px;
  background: #d7d8da;
  padding: 4px;
  margin: 0 0 5px;
}
.menu-item {
  font: 29px Pixel;
  text-align: left;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #eeeff1;
  background: linear-gradient(110deg, #e6e6e7, #c2c3c6);
  height: 54px;
  padding: 10px 14px;
  box-shadow: none;
}
.menu-item.selected {
  border: 2px solid var(--pink);
  background: linear-gradient(90deg, #fce2f2, #ffd4ee);
  margin: 3px 6px;
  box-shadow: 0 0 0 3px #ffffff70;
  border-radius: 5px;
  position: relative;
}
.menu-item.selected:after {
  content: "";
  position: absolute;
  right: -17px;
  top: 10px;
  width: 22px;
  height: 22px;
  background: #ffd5ee;
  border-right: 2px solid var(--pink);
  border-top: 2px solid var(--pink);
  transform: rotate(45deg);
}
.home-controls {
  padding: 9px 17px 18px;
}
.home-controls h2 {
  font: 52px/0.95 Pixel;
  margin: 12px 0 7px;
}
.home-controls p {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.home-controls > .primary {
  width: min(100%, 345px);
  font-size: 35px;
  margin: 0 0 0;
  height: 53px;
}
.quick-fields {
  display: grid;
  grid-template-columns: 1.6fr 1fr 105px;
  gap: 14px;
  align-items: end;
}
.quick-fields label {
  margin: 4px 0;
  font-size: 15px;
}
.quick-fields button {
  height: 42px;
  background: #7f8999;
  color: white;
}
.home-ad-well {
  border-left: 1px dashed #868b9a;
  padding-left: 15px;
}
.home-ad-well > small {
  display: block;
  color: #9298a5;
  background: #e1e2e4;
  font-size: 11px;
  letter-spacing: 1px;
}
.community-art {
  height: 237px;
  background: #249dea none 80% center/auto 100%;
  margin: 7px 0;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  font: 30px/0.95 Pixel;
  border: 1px solid #9cbbd9;
}
.community-art a {
  font: 12px Arial;
  color: white;
  font-weight: bold;
}
.home-status {
  grid-column: 1/-1;
  margin: 0 -24px;
  min-height: 48px;
  border-top: 1px solid #9097a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 27px;
  font-size: 14px;
  gap: 12px;
}
.home-status span + span {
  border-left: 1px solid #637088;
  padding-left: 27px;
}
.home-status a {
  color: #363bdf;
}
.site-footer {
  max-width: 1420px;
  margin: 17px auto 50px;
  display: flex;
  gap: 18px;
  padding: 0 26px;
  font-size: 12px;
  color: #243452;
}
.site-footer span {
  margin-left: auto;
}
.site-footer button {
  font: 12px Arial;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.compact-page {
  background: #eee;
  background-image:
    linear-gradient(#aab2c922 1px, transparent 1px),
    linear-gradient(90deg, #aab2c922 1px, transparent 1px);
  background-size: 5px 5px;
}
.compact-page .market-header {
  height: 88px;
  background: linear-gradient(110deg, #f7f8fa, #dfe3e9);
  border-bottom: 1px solid #8a99b5;
  padding: 15px 34px;
  gap: 25px;
}
.compact-page .compact-name {
  display: block;
  border-left: 1px solid #657188;
  padding-left: 24px;
  font-size: 50px;
}
.compact-page .market-brand {
  font-size: 34px;
}
.compact-page .market-brand small {
  display: none;
}
.compact-page .market-header nav {
  gap: 24px;
}
.compact-page .market-header nav a {
  font-size: 14px;
  font-weight: normal;
}
.compact-page .street-banner {
  height: 138px;
  background: #5dbce8 none center 65%/100% auto;
  max-width: none;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  color: #0a578a;
  margin-bottom: 18px;
}
.compact-page .street-banner h1 {
  display: none;
}
.compact-page .street-banner > p {
  margin: 0;
  font: 13px/1.4 monospace;
  letter-spacing: 1.5px;
}
.compact-page .shell {
  max-width: 1540px;
  padding: 0 24px;
}
.match-board {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(420px, 1.8fr) minmax(
      260px,
      1fr
    );
  gap: 12px;
  align-items: start;
}
.match-board .panel {
  margin: 0;
  min-width: 0;
}
.players-panel {
  min-height: 435px;
}
.players-panel .player {
  border: 1px solid #b7bdc7;
  background: linear-gradient(120deg, #f9f9fa, #cbd0d7);
  border-radius: 4px;
  margin: 0 0 8px;
  padding: 8px 10px;
  gap: 10px;
}
.players-panel .players {
  gap: 0;
}
.players-panel .avatar {
  width: 42px;
  height: 52px;
}
.players-panel .player b {
  font: 23px Pixel;
}
.players-panel .player small {
  font-size: 10px;
}
.players-panel .stats {
  white-space: nowrap;
  font-size: 13px;
}
.auction-panel {
  text-align: left;
  min-height: 435px;
}
.auction-panel > .row:first-child {
  padding: 2px 0 9px;
  border-bottom: 1px solid #a6adb9;
}
.auction-panel > .foodart {
  float: left;
  width: 48%;
  height: 218px;
  background: #f7f6ef;
  border: 1px solid #c6c9ce;
  margin: 8px 18px 12px 0;
  padding: 20px;
}
.auction-panel > h2 {
  padding-top: 25px;
  font-size: 50px;
}
.auction-panel > p {
  font-size: 17px;
}
.auction-panel > .bidbar {
  clear: both;
  background: linear-gradient(#dedfe0, #c6c8cb);
  color: var(--ink);
  border: 1px solid #b6b8be;
  border-radius: 3px;
}
.bidbar small {
  color: #344058 !important;
}
.bidbar strong {
  font-size: 37px;
}
.bidbar .pixel {
  color: #e91899;
}
.timer {
  color: var(--ink);
  font-size: 33px;
}
.auction-panel .eyebrow {
  font: 27px Pixel;
  letter-spacing: 0;
}
.auction-panel > form {
  clear: both;
}
.auction-panel > .row button {
  font: 26px Pixel;
  flex: 1;
}
.auction-panel .seat-ribbon {
  border-top: 1px solid #a2aaba;
  padding-top: 8px;
  font-size: 12px;
}
.advantages-panel .power {
  background: linear-gradient(120deg, #f9f9fa, #cfd2d7);
  border: 1px solid #b4bbc6;
  box-shadow: none;
  padding: 12px;
}
.power b {
  font: 24px Pixel;
}
.power small {
  font-size: 12px;
  line-height: 1.3;
  margin-top: 4px;
}
.advantages-panel h3 {
  font-size: 28px;
}
.collection-panel {
  margin-top: 12px;
  padding: 12px;
}
.collection-panel h3 {
  font-size: 22px;
}
.plate {
  background: #ebedef;
  border: 1px solid #bcc3cf;
  font-size: 11px;
  padding: 7px;
  max-width: 135px;
}
.plate svg {
  width: 65px;
  height: 42px;
}
.recent-lots {
  margin-top: 14px;
  border-top: 1px solid #9ca5b4;
  padding-top: 8px;
}
.recent-item {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  padding: 6px;
  border: 1px solid #b8bdc6;
  background: #e0e2e6;
  margin-top: 7px;
}
.recent-item svg {
  width: 50px;
  height: 40px;
  grid-row: 1/3;
}
.recent-item b {
  font-size: 13px;
}
.recent-item small {
  font-size: 10px;
}
.tag {
  background: #dc1d8f;
  color: white;
  border-radius: 0;
  font-size: 12px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1.7fr 1fr;
  gap: 14px;
  min-height: 450px;
}
.shop-layout h1,
.shop-layout h2 {
  font: 35px Pixel;
  margin: 0 0 13px;
  border-bottom: 1px solid #afb5c0;
  padding-bottom: 10px;
}
.shop-layout .panel {
  min-height: 440px;
}
.shop-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category {
  font: 26px Pixel;
  text-align: left;
  min-height: 72px;
  border: 1px solid #b4bac4;
}
.category.active {
  background: #f9dbee;
  border: 2px solid var(--pink);
  opacity: 1;
}
.back-game {
  margin-top: auto;
  text-align: center;
  font: 24px Pixel;
}
.empty-shelves {
  display: flex;
  min-height: 330px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: repeating-linear-gradient(
    0deg,
    #c4c9d02a 0 70px,
    #9aa3b555 70px 72px
  );
}
.empty-shelves h2 {
  border: 0;
  font-size: 36px;
  margin: 10px 0;
}
.empty-icon {
  font-size: 65px;
  color: #9ca6b6;
}
.doc {
  max-width: 960px;
  margin: auto;
  background: transparent;
  border: 0;
}
.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.65;
}
.doc h1 {
  font: 56px Pixel;
}
.ad-slot {
  display: none;
}
.ad-slot.is-visible {
  display: block;
  clear: both;
  margin: 18px auto;
  max-width: 100%;
  overflow: hidden;
  min-height: 100px;
  text-align: center;
}
.ad-label {
  font: 10px Arial;
  color: #646e80;
  letter-spacing: 1px;
}
.account-link {
  font-size: 12px !important;
}
@media (min-width: 1600px) {
  .market-backdrop {
    height: 760px;
  }
  .street-banner {
    height: 560px;
  }
}
@media (max-width: 1180px) {
  .home-board {
    grid-template-columns: 230px 1fr 230px;
  }
  .home-controls {
    padding: 5px;
  }
  .home-controls h2 {
    font-size: 43px;
  }
  .home-controls p {
    font-size: 15px;
  }
  .quick-fields {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }
  .quick-fields button {
    grid-column: 2;
  }
  .compact-page .compact-name {
    font-size: 37px;
  }
  .match-board {
    grid-template-columns: 205px 1fr 255px;
  }
  .auction-panel > .foodart {
    height: 170px;
    width: 44%;
  }
  .auction-panel > h2 {
    font-size: 39px;
  }
  .market-header nav {
    gap: 20px;
  }
}
@media (max-width: 950px) {
  .street-banner {
    height: 390px;
  }
  .market-backdrop {
    height: 570px;
  }
  .home-board {
    grid-template-columns: 200px 1fr;
  }
  .home-ad-well {
    display: none;
  }
  .home-controls h2 {
    font-size: 46px;
  }
  .home-status {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .home-status span + span {
    padding-left: 14px;
  }
  .compact-page .market-header {
    gap: 12px;
    padding: 12px 20px;
  }
  .compact-page .compact-name {
    font-size: 32px;
    padding-left: 15px;
  }
  .market-header nav .account-link {
    display: none;
  }
  .compact-page .market-header nav {
    gap: 14px;
  }
  .match-board {
    grid-template-columns: 1fr 270px;
  }
  .players-panel {
    grid-column: 1/-1;
    min-height: 0;
  }
  .players-panel .players {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .players-panel .player {
    width: calc(33.33% - 6px);
    margin: 0;
  }
  .shop-layout {
    grid-template-columns: 190px 1fr;
  }
  .shop-layout > section:last-child {
    grid-column: 1/-1;
    min-height: 0;
  }
  .shop-layout .panel {
    min-height: 350px;
  }
}
@media (max-width: 650px) {
  .market-header {
    height: 68px;
    padding: 12px 15px;
    gap: 10px;
  }
  .market-brand {
    font-size: 31px;
  }
  .market-brand small {
    font-size: 8px;
  }
  .market-header nav {
    gap: 12px;
  }
  .market-header nav a {
    font-size: 12px;
  }
  .market-header nav a:last-child {
    display: none;
  }
  .street-banner {
    height: 310px;
    padding: 35px 10px 0;
  }
  .street-banner h1 {
    font-size: clamp(43px, 10vw, 65px);
    letter-spacing: 0;
  }
  .street-banner > p {
    font-size: 15px;
    margin: 5px 0 0 7%;
  }
  .market-backdrop {
    height: 440px;
    background-size: auto 460px;
    background-position: center top;
  }
  .shell,
  .compact-page .shell {
    padding: 0 10px;
  }
  .home-board {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
    margin-top: 0;
  }
  .menu-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .menu-panel h3 {
    grid-column: 1/-1;
  }
  .menu-item {
    font-size: 22px;
    height: 45px;
  }
  .menu-item.selected {
    margin: 0;
    box-shadow: none;
  }
  .menu-item.selected:after {
    display: none;
  }
  .home-controls {
    padding: 5px 9px 12px;
  }
  .home-controls h2 {
    font-size: 43px;
  }
  .home-controls p {
    font-size: 16px;
  }
  .home-controls > .primary {
    width: 100%;
    font-size: 30px;
  }
  .quick-fields {
    grid-template-columns: 1.3fr 1fr;
    gap: 9px;
  }
  .quick-fields button {
    grid-column: 1/-1;
  }
  .home-status {
    margin: 0 -12px;
    padding: 10px 16px;
    gap: 10px;
    font-size: 11px;
    justify-content: flex-start;
  }
  .home-status span + span {
    border-left: 0;
    padding-left: 0;
  }
  .home-status a {
    display: none;
  }
  .compact-page .market-header {
    height: 72px;
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  .compact-page .compact-name {
    font-size: 31px;
    padding-left: 10px;
  }
  .compact-page .market-brand {
    font-size: 28px;
  }
  .compact-page .market-header nav {
    width: 100%;
    justify-content: flex-end;
    margin-top: -3px;
    gap: 18px;
  }
  .compact-page .market-header nav a {
    font-size: 11px;
    padding: 0;
  }
  .compact-page .street-banner {
    height: 100px;
    padding: 20px 18px;
    background-size: auto 330px;
    background-position: center 59%;
    margin-bottom: 12px;
  }
  .compact-page .street-banner > p {
    font-size: 9px;
    background: #75ccef9c;
    padding: 3px;
  }
  .match-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .match-board > * {
    width: 100%;
  }
  .auction-panel {
    order: 0;
  }
  .advantages-panel {
    order: 1;
  }
  .players-panel {
    order: 2;
  }
  .auction-panel > .foodart {
    height: 135px;
    width: 42%;
    padding: 12px;
    margin-right: 12px;
  }
  .auction-panel > h2 {
    padding-top: 13px;
    font-size: 37px;
  }
  .auction-panel > p {
    font-size: 14px;
  }
  .auction-panel .eyebrow {
    font-size: 23px;
  }
  .players-panel .player {
    width: calc(50% - 4px);
    padding: 7px;
  }
  .players-panel .player b {
    font-size: 20px;
  }
  .players-panel .stats {
    font-size: 11px;
  }
  .shop-layout {
    display: flex;
    flex-direction: column;
  }
  .shop-layout .panel {
    min-height: 0;
  }
  .shop-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .shop-categories h2,
  .shop-categories .back-game {
    grid-column: 1/-1;
  }
  .category {
    font-size: 22px;
    min-height: 46px;
  }
  .empty-shelves {
    min-height: 190px;
  }
  .empty-shelves h2 {
    font-size: 30px;
  }
  .site-footer {
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 14px;
    font-size: 11px;
  }
  .site-footer span {
    margin-left: 0;
    width: 100%;
  }
  .audio-bar {
    bottom: 5px;
    right: 8px;
    max-width: calc(100vw - 16px);
  }
  .audio-bar label {
    display: none;
  }
  .panel {
    padding: 14px;
  }
  .home-board {
    padding: 12px;
  }
  .doc p {
    font-size: 15px;
  }
  .row button {
    flex: initial;
  }
}

.compact-page .market-backdrop {
  display: none;
}
.compact-page .street-banner {
  background-repeat: no-repeat;
  background-size: auto 365px;
  background-position: center 63%;
  background-color: #62bfee;
}
.ui-icon {
  width: 29px;
  height: 29px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 29px;
}
.menu-item .ui-icon {
  width: 31px;
  height: 31px;
}
.players-panel .stats {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font: 23px Pixel;
}
.players-panel .stats > span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.players-panel .stats .ui-icon {
  width: 20px;
  height: 20px;
}
.players-panel .is-you {
  border: 2px solid var(--pink);
  background: linear-gradient(90deg, #ffe4f4, #ffcbe8);
  box-shadow: 0 0 0 3px #ffffff80;
}
.avatar {
  width: 52px;
  height: 52px;
}
.avatars .avatar {
  width: 58px;
  height: 58px;
}
.market-header .compact-name {
  font-weight: normal;
}
.auction-panel > .foodart {
  padding: 8px;
}
.home-status .ui-icon {
  width: 22px;
  height: 22px;
}
.shop-categories .category {
  opacity: 1;
  color: #101936;
}
.shop-categories .category:not(.active) {
  background: linear-gradient(#e8e9eb, #d1d3d7);
}
@media (max-width: 650px) {
  .players-panel .stats {
    font-size: 18px;
    gap: 5px;
  }
  .players-panel .stats .ui-icon {
    width: 16px;
    height: 16px;
  }
  .menu-item {
    font-size: 22px;
    gap: 8px;
  }
  .menu-item .ui-icon {
    width: 24px;
    height: 24px;
  }
  .compact-page .street-banner {
    background-size: auto 290px;
  }
  .market-header nav a:last-child {
    display: none;
  }
}

.market-backdrop {
  background: linear-gradient(110deg, #4dbdf1, #55b3ec);
  height: 660px;
}
.reference-store {
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  height: 360px;
}
.street-banner {
  height: 484px;
  padding-top: 8px;
}
.street-banner h1 {
  font-size: clamp(72px, 10.3vw, 160px);
  line-height: 0.75;
}
.street-banner > p {
  margin-top: 10px;
}
.compact-page .street-banner {
  position: relative;
  overflow: hidden;
  background: #51baf1;
}
.compact-page .street-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/references/game.png") center -166px/1536px 1024px no-repeat;
  pointer-events: none;
}
.compact-page .street-banner > p {
  visibility: hidden;
}
.community-art {
  position: relative;
  background: #46b5ee;
  overflow: hidden;
}
.community-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/references/home.png") -1157px -690px/1536px 1024px no-repeat;
}
.community-art > span {
  display: none;
}
.community-art a {
  position: relative;
  align-self: stretch;
  margin-top: auto;
  background: #075daaab;
  padding: 6px;
  font-size: 10px;
}
.shop-categories .category:nth-child(2):before {
  content: "◉";
  margin-right: 15px;
}
.shop-categories .category:nth-child(3):before {
  content: "▣";
  margin-right: 15px;
}
.shop-categories .category:nth-child(4):before {
  content: "▱";
  margin-right: 15px;
}
.shop-categories .category:nth-child(5):before {
  content: "▤";
  margin-right: 15px;
}
@media (max-width: 950px) {
  .reference-store {
    top: 180px;
    height: 340px;
    min-width: 950px;
    left: 50%;
    transform: translateX(-50%);
  }
  .street-banner {
    height: 390px;
  }
  .market-backdrop {
    height: 570px;
  }
}
@media (max-width: 650px) {
  .reference-store {
    top: 135px;
    height: 180px;
    min-width: 760px;
    width: 760px;
  }
  .street-banner {
    height: 310px;
    padding-top: 25px;
  }
  .street-banner h1 {
    font-size: clamp(43px, 10vw, 65px);
    line-height: 0.9;
  }
  .street-banner > p {
    margin-top: 5px;
  }
  .market-backdrop {
    height: 440px;
  }
  .compact-page .street-banner:before {
    background-position: center -126px;
    background-size: 1165px 777px;
  }
  .compact-page .reference-store {
    display: none;
  }
}

dialog {
  max-width: 540px;
  background: #f4f3ef;
  color: #080d2e;
  border: 2px solid #646675;
  padding: 24px;
}
dialog::backdrop {
  background: #071027aa;
}
dialog .row {
  flex-wrap: wrap;
}
#adsense-host {
  margin: 18px auto;
  max-width: 728px;
}
#adsense-host[hidden] {
  display: none;
}
/* One interface system across home, rooms, shop and supporting pages. */
:root {
  --ui-bg: #122034;
  --ui-panel: #20324b;
  --ui-card: #283c55;
  --ui-text: #edf2ff;
  --ui-muted: #a9b8ce;
  --ui-border: #526680;
  --ui-input: #16253b;
  --ui-button: #344b69;
  --ui-pink: #ee219e;
}
html[data-theme="light"] {
  --ui-bg: #d9e2ed;
  --ui-panel: #e7edf4;
  --ui-card: #f1f5fa;
  --ui-text: #14243b;
  --ui-muted: #56657c;
  --ui-border: #98abc3;
  --ui-input: #fff;
  --ui-button: #d1dce9;
}
body,
.compact-page {
  background-color: var(--ui-bg);
  color: var(--ui-text);
  background-image:
    linear-gradient(#8ca5c90a 1px, transparent 1px),
    linear-gradient(90deg, #8ca5c90a 1px, transparent 1px);
  font:
    16px/1.5 "Trebuchet MS",
    Arial,
    sans-serif;
}
h1,
h2,
h3 {
  color: var(--ui-text);
}
.panel,
.card,
.players-panel .player,
.advantages-panel .power,
.plate,
.recent-item {
  background: linear-gradient(125deg, var(--ui-panel), var(--ui-card));
  color: var(--ui-text);
  border-color: var(--ui-border);
  box-shadow:
    inset 0 1px #ffffff0b,
    0 5px 12px #030b1426;
}
.panel {
  clip-path: polygon(
    0 12px,
    12px 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    12px 100%,
    0 calc(100% - 12px)
  );
  padding: 20px;
}
.panel:before {
  border-color: #8ba4c53a;
  inset: 7px;
}
.card {
  border-radius: 6px;
}
.market-header,
.compact-page .market-header {
  height: 88px;
  padding: 12px 32px;
  gap: 24px;
  background: var(--ui-bg);
  color: var(--ui-text);
  border-bottom: 1px solid var(--ui-border);
}
.market-brand,
.compact-page .market-brand {
  font-size: 36px;
  color: var(--ui-text);
}
.market-brand small,
.compact-page .market-brand small {
  display: block;
  color: var(--ui-muted);
  font-size: 9px;
}
.market-header .compact-name {
  display: none;
}
.market-header nav,
.compact-page .market-header nav {
  gap: 8px;
  align-items: center;
}
.market-header nav a,
.compact-page .market-header nav a,
.market-header nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 11px;
  font:
    600 14px/1.3 "Trebuchet MS",
    Arial;
  color: var(--ui-text);
}
.market-header nav .ui-icon {
  width: 18px;
  height: 18px;
}
.market-header nav a.active {
  background: var(--ui-card);
  border-color: var(--ui-border);
}
.market-header nav a.active:after {
  display: none;
}
.market-header nav .account-link {
  background: var(--ui-button);
  border-color: var(--ui-border);
  font-size: 14px !important;
}
.theme-toggle {
  background: var(--ui-card) !important;
}
.market-backdrop {
  background: #1b5475;
}
.reference-store {
  filter: brightness(0.77) saturate(0.9);
}
html[data-theme="light"] .reference-store {
  filter: none;
}
.home-board {
  margin-top: -28px;
  gap: 20px;
  padding: 18px 22px 0;
  grid-template-columns: 280px minmax(0, 1fr) 285px;
}
.home-controls {
  padding: 9px 14px 15px;
  min-width: 0;
}
.home-controls h2 {
  font-size: 46px;
  line-height: 1.08;
  margin: 8px 0 12px;
}
.home-controls p {
  font:
    17px/1.45 "Trebuchet MS",
    Arial;
}
.home-controls > .primary {
  font:
    700 22px/1.2 "Trebuchet MS",
    Arial;
  height: 52px;
  width: 340px;
  max-width: 100%;
  margin-bottom: 8px;
}
.menu-panel,
.menu-panel h3 {
  background: var(--ui-card);
}
.menu-panel h3,
.home-ad-well > small {
  color: var(--ui-muted);
  background: var(--ui-card);
}
.menu-item,
.category,
.back-game {
  background: var(--ui-button);
  color: var(--ui-text);
  font:
    700 19px/1.3 "Trebuchet MS",
    Arial;
  border-color: var(--ui-border);
}
.menu-item {
  height: 54px;
  gap: 12px;
}
.menu-item.selected,
.category.active,
.players-panel .is-you {
  background: linear-gradient(110deg, #702959, #3f2e51);
  color: #fff;
  border-color: var(--ui-pink);
  box-shadow: inset 0 0 0 1px #ffb4e91a;
}
.menu-item.selected:after {
  background: #492e53;
}
.home-status {
  border-color: var(--ui-border);
  font-size: 13px;
}
.home-status a,
.site-footer a,
.source-link,
.doc a {
  color: #b4d2ff;
}
.site-footer {
  color: var(--ui-muted);
}
button,
.button,
button.primary,
.button.primary,
.quick-fields button,
.auction-panel > .row button {
  font:
    700 16px/1.3 "Trebuchet MS",
    Arial,
    sans-serif;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ui-button), var(--ui-card));
  color: var(--ui-text);
  box-shadow: inset 0 1px #ffffff15;
  white-space: normal;
  text-align: center;
  transition:
    transform 0.14s,
    background 0.14s,
    box-shadow 0.14s;
}
button.primary,
.button.primary {
  background: linear-gradient(180deg, #f32fa9, #d6108a);
  border-color: #f45fb7;
  color: white;
}
button:hover:not(:disabled),
.button:hover {
  box-shadow:
    inset 0 1px #ffffff25,
    0 0 0 2px #f24cb528;
  transform: translateY(-1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #76c9ff;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  transform: none;
}
input,
textarea,
select {
  font:
    16px/1.4 "Trebuchet MS",
    Arial;
  color: var(--ui-text);
  background: var(--ui-input);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  width: 100%;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
}
label {
  font-size: 14px;
  color: var(--ui-muted);
}
.players-panel .player {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  min-height: 72px;
}
.players-panel .avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 3px;
  background: var(--ui-card);
}
.players-panel .player b {
  display: block;
  font:
    700 15px/1.3 "Trebuchet MS",
    Arial;
  overflow-wrap: anywhere;
}
.players-panel .player br {
  display: none;
}
.players-panel .player small {
  display: block;
  color: var(--ui-muted);
  font:
    11px/1.3 "Trebuchet MS",
    Arial;
  margin-top: 4px;
}
.players-panel .stats {
  font:
    700 14px/1.3 "Trebuchet MS",
    Arial;
  gap: 9px;
}
.players-panel .stats .ui-icon {
  width: 18px;
  height: 18px;
}
.players-panel h3,
.advantages-panel h3,
.recent-lots h3 {
  font: 28px/1.1 Pixel;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 14px;
}
.players-panel h3 .ui-icon,
.recent-lots h3 .ui-icon {
  width: 22px;
  height: 22px;
}
.auction-panel > h2 {
  font-size: 44px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.auction-panel > .foodart {
  background: var(--ui-input);
  border-color: var(--ui-border);
  border-radius: 6px;
}
.item-image {
  object-fit: contain;
}
.auction-panel > .bidbar {
  background: var(--ui-card);
  border-color: var(--ui-border);
}
.bidbar small {
  color: var(--ui-muted) !important;
}
.bidbar strong {
  font:
    700 30px/1.25 "Trebuchet MS",
    Arial;
}
.lot .bidbar,
.lot .bidbar strong,
.lot .bidbar > div {
  color: var(--ui-text);
}
.timer {
  color: var(--ui-text);
  font:
    700 28px/1.3 "Trebuchet MS",
    Arial;
  font-variant-numeric: tabular-nums;
}
.auction-panel > p,
.auction-panel > small,
.item-description {
  font:
    15px/1.5 "Trebuchet MS",
    Arial;
  overflow-wrap: anywhere;
}
.power b {
  font:
    700 17px/1.3 "Trebuchet MS",
    Arial;
}
.power small,
.muted {
  color: var(--ui-muted);
}
.seat-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  clear: both;
}
.compose-panel h2 {
  font-size: 44px;
  line-height: 1.1;
}
.compose-panel form {
  display: grid;
  gap: 8px;
}
.compose-options {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: end;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.check-label input {
  width: 18px;
  height: 18px;
}
.waiting-tray .foodart {
  width: 100%;
  height: 230px;
}
.source-link {
  display: inline-block;
  margin: 6px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.audio-bar {
  background: var(--ui-panel);
  border-color: var(--ui-border);
  color: var(--ui-text);
}
.audio-bar button {
  font-size: 11px;
  min-height: 28px;
  padding: 5px 7px;
  background: var(--ui-card);
}
.audio-bar label {
  color: var(--ui-muted);
}
.empty-shelves,
.shop-categories .category:not(.active) {
  background: var(--ui-card);
  color: var(--ui-text);
}
dialog {
  background: var(--ui-panel);
  color: var(--ui-text);
  border-color: var(--ui-border);
}
.home-ad-well {
  border-color: var(--ui-border);
}
.community-art {
  border-color: var(--ui-border);
}
@media (max-width: 1180px) {
  .home-board {
    grid-template-columns: 230px minmax(0, 1fr) 220px;
  }
  .market-header,
  .compact-page .market-header {
    padding: 12px 20px;
    gap: 12px;
  }
  .market-header nav a,
  .compact-page .market-header nav a {
    padding: 8px;
    font-size: 12px;
  }
  .market-header nav .ui-icon {
    display: none;
  }
  .players-panel .player {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .players-panel .stats {
    grid-column: 2;
  }
  .players-panel .avatar {
    width: 38px;
    height: 42px;
    grid-row: 1/3;
  }
}
@media (max-width: 950px) {
  .home-board {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .market-header,
  .compact-page .market-header {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
  }
  .market-header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .players-panel .player {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
  .players-panel .stats {
    grid-column: auto;
  }
  .players-panel .avatar {
    grid-row: auto;
  }
  .market-header nav .account-link {
    display: inline-flex !important;
  }
}
@media (max-width: 650px) {
  .market-header,
  .compact-page .market-header {
    padding: 12px;
    gap: 12px;
  }
  .market-brand,
  .compact-page .market-brand {
    font-size: 30px;
  }
  .market-header nav,
  .compact-page .market-header nav {
    width: 100%;
    margin: 0;
    justify-content: flex-start;
    gap: 5px;
  }
  .market-header nav a,
  .compact-page .market-header nav a,
  .market-header nav button {
    font-size: 11px !important;
    padding: 7px 8px;
    min-height: 32px;
    display: inline-flex !important;
  }
  .home-board {
    grid-template-columns: 1fr;
    margin-top: -32px;
    padding: 14px 14px 0;
    gap: 8px;
  }
  .menu-panel {
    gap: 6px;
    background: transparent;
  }
  .menu-item {
    font-size: 15px !important;
    padding: 9px !important;
    height: 45px;
  }
  .menu-item .ui-icon {
    width: 22px;
    height: 22px;
  }
  .home-controls {
    padding: 6px 2px 14px;
  }
  .home-controls h2 {
    font-size: 41px;
  }
  .home-controls > .primary {
    font-size: 20px;
  }
  .home-controls p {
    font-size: 15px;
  }
  .players-panel .player {
    width: 100%;
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }
  .players-panel .avatar {
    width: 44px;
    height: 44px;
  }
  .players-panel .stats {
    font-size: 14px;
  }
  .auction-panel > h2 {
    font-size: 35px;
  }
  .seat-ribbon {
    align-items: flex-start;
    font-size: 12px;
  }
  .compose-panel h2 {
    font-size: 36px;
  }
  .compose-options {
    grid-template-columns: 1fr;
  }
  .home-status {
    margin: 0 -14px;
  }
  .audio-bar label {
    display: none;
  }
  .row {
    flex-wrap: wrap;
  }
  .row button {
    flex: 1;
    min-width: 100px;
  }
}
@keyframes suspense-pulse {
  50% {
    box-shadow: 0 0 0 5px #fb229c20;
    transform: scale(1.04);
  }
}
@keyframes sold-stamp {
  0% {
    opacity: 0;
    transform: scale(1.4) rotate(-8deg);
  }
  70% {
    transform: scale(0.97) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes reveal-stage {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.8);
    filter: blur(7px);
  }
  55% {
    opacity: 0.4;
    transform: translateY(0) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes score-arrive {
  0% {
    transform: translateY(8px);
    opacity: 0.2;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
.scene-sold .auction-panel h3 {
  animation: sold-stamp 0.55s ease-out;
}
.scene-reveal .auction-panel > .foodart {
  animation: reveal-stage 1.15s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.scene-reveal .auction-panel > h2 {
  animation: score-arrive 0.4s 0.65s both;
}
.scene-reveal .players-panel .stats {
  animation: score-arrive 0.5s 0.6s both;
}
.timer.is-urgent {
  color: #ff76b9;
  animation: suspense-pulse 1s infinite;
  border-radius: 5px;
}
.waiting-tray {
  animation: tray-bob 4s ease-in-out infinite;
}
.menu-item:hover:not(:disabled) {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.panel small,
.card small {
  color: var(--ui-muted);
}
.audio-bar button {
  color: var(--ui-text);
}
.site-footer button {
  color: var(--ui-muted);
  min-height: 0;
  text-align: left;
  font:
    12px/1.5 "Trebuchet MS",
    Arial;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.item-description {
  clear: both;
}
.compose-panel input,
.compose-panel textarea {
  min-width: 0;
}
.scene-reveal .item-description,
.scene-reveal .source-link {
  animation: score-arrive 0.45s 0.65s both;
}
.players-panel .stats .ui-icon {
  flex-shrink: 0;
}
.panel p,
.panel h2,
.panel h3 {
  overflow-wrap: anywhere;
}
.compose-panel {
  min-width: 0;
}
.market-backdrop {
  overflow: hidden;
}
.avatar {
  overflow: hidden;
}
.rank {
  flex-shrink: 0;
}
.player > b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.player .stats {
  flex-shrink: 0;
}
