﻿/* Shared TF cosmetic economy and social panels. */
.avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid #3a3030;
  border-radius: 2px;
}
.resource-bar {
  position: absolute;
  top: 92px;
  left: 3%;
  right: 3%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 26px;
  font: 10px var(--font-mono);
  letter-spacing: 0.08em;
  color: #9d9390;
  pointer-events: none;
}
.resource-bar b {
  color: #e5d8c6;
  font-size: 13px;
  font-weight: 500;
  margin-right: 5px;
}
.resource-bar button {
  pointer-events: auto;
  margin-left: 8px;
}
.community-controls {
  position: absolute;
  right: 3%;
  top: calc(18% + 78px);
  z-index: 4;
  display: flex;
  gap: 22px;
}
.community-controls button {
  font-size: 10px;
}
#online-count {
  color: #b3b99a;
}
#unread-count {
  color: #ff5362;
}
.navigation nav {
  gap: 20px;
}
.navigation nav a {
  font-size: 10px;
}
.account-link .avatar {
  width: 25px;
  height: 25px;
}
.hat-art {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.hat-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 12px #0006);
  transition: transform var(--motion-fast), filter var(--motion-fast);
}
.item-card:hover .hat-art > img,
.workshop-item-tile:hover .hat-art > img {
  transform: scale(1.08);
  filter: drop-shadow(0 14px 15px #0008);
}
.item-card .gem {
  height: 128px;
  margin: 0 0 20px;
  font-size: 70px;
}
.item-card .item-name {
  position: relative;
  z-index: 2;
}
.item-card .gem.hat-art {
  font-size: 70px;
}
.effect-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font: 8px var(--font-mono);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.1em;
  color: #f69e73;
  z-index: 3;
  background: linear-gradient(transparent, #0a0808dc);
  padding: 6px 0;
}
.hat-art[class*="effect-"]:before,
.hat-art[class*="effect-"]:after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.effect-smoke:before {
  width: 80%;
  height: 65%;
  bottom: 8%;
  background: radial-gradient(ellipse, #c8b2a655, transparent 68%);
  animation: cosmetic-smoke 4s ease-in-out infinite alternate;
  filter: blur(8px);
}
.effect-sparks:before {
  inset: 5%;
  background:
    radial-gradient(circle at 20% 20%, #ff7637 0 1px, transparent 3px),
    radial-gradient(circle at 70% 30%, #ffcf99 0 1px, transparent 3px),
    radial-gradient(circle at 80% 70%, #fc283f 0 2px, transparent 4px),
    radial-gradient(circle at 30% 60%, #ff3944 0 1px, transparent 3px);
  animation: cosmetic-sparks 2.5s ease-in-out infinite alternate;
}
.effect-orbit:before {
  width: 78%;
  height: 36%;
  border: 1px solid #ff344f99;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
  animation: cosmetic-orbit 5s linear infinite;
}
.effect-orbit:after {
  width: 65%;
  height: 70%;
  background: radial-gradient(ellipse, #d9001818, transparent 65%);
}
@keyframes cosmetic-smoke {
  to {
    transform: translateY(-20px) scale(1.18);
    opacity: 0.5;
  }
}
@keyframes cosmetic-sparks {
  to {
    transform: translateY(-13px);
    opacity: 0.35;
  }
}
@keyframes cosmetic-orbit {
  to {
    transform: rotate(338deg);
  }
}
.inspected-art .hat-art {
  height: 195px;
  max-width: 280px;
  margin: 0 auto;
}
.inspected-art .hat-art img {
  height: 190px;
}
.inspected-art .effect-label {
  font-size: 10px;
}
.profile-avatar {
  object-fit: cover;
  border: 1px solid #594238;
  margin-bottom: 12px;
}
.avatar-presets {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}
.avatar-choice {
  background: none;
  border: 1px solid transparent;
  padding: 2px;
}
.avatar-choice[aria-pressed="true"] {
  border-color: #d90018;
}
.upload-label {
  display: block;
  position: relative;
  cursor: pointer;
  font: 10px var(--font-mono);
  text-decoration: underline;
}
.upload-label input {
  display: block;
  max-width: 240px;
  margin: 12px auto;
  font: 10px var(--font-mono);
}
.recovery-secret {
  font: 11px var(--font-mono);
  word-break: break-all;
  color: #e7b58d;
  line-height: 1.8;
}
.recovery-form {
  margin-top: 24px;
}
.recovery-form summary {
  font-size: 12px;
  cursor: pointer;
}
.recovery-form input {
  display: block;
  width: 100%;
  margin: 10px 0 16px;
}
.recovery-form .button {
  width: 100%;
}
#cosmetic-showcase .item-card {
  margin: 18px auto;
  max-width: 210px;
  width: 100%;
}
.profile-stats {
  margin-top: 24px;
}
#leaderboard li {
  display: grid;
  grid-template-columns: 25px 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.player-online:after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9baf84;
  margin-left: 8px;
}
.board-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #392727;
  margin-bottom: 10px;
}
.board-tabs [aria-pressed="true"] {
  color: #f4e9df;
  border-bottom: 1px solid #d90018;
}
.board-tabs .text-button {
  font-size: 10px;
}
#my-rank {
  border-top: 1px solid #4a3030;
}
.people-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.people-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #292222;
  font-size: 13px;
}
.chat-drawer {
  display: flex;
  flex-direction: column;
  height: 100svh;
  max-height: 100svh;
  width: 430px;
  padding: 24px;
}
.chat-drawer:not([open]) {
  display: none;
}
#chat-log {
  flex: 1;
  overflow: auto;
  min-height: 180px;
  padding: 12px 4px;
  scrollbar-color: #503232 #0b0909;
}
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #211c1c;
}
.chat-message > div {
  min-width: 0;
  flex: 1;
}
.chat-message p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin: 6px 0;
}
.chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.chat-message time {
  font: 9px var(--font-mono);
  color: #968783;
}
.chat-message .text-button {
  font-size: 8px;
  margin-right: 12px;
}
.chat-drawer form {
  padding-top: 14px;
  border-top: 1px solid #453030;
}
.chat-drawer textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 75px;
  max-height: 140px;
  background: #100d0d;
  color: #f1e7e2;
  border: 1px solid #55403c;
  font: 13px var(--font-ui);
  padding: 12px;
  margin: 8px 0 12px;
}
.chat-drawer form .button {
  width: 100%;
}
.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.workshop-card {
  padding: 28px;
  margin-bottom: 24px;
}
.workshop-card h2 {
  font: 28px var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.workshop-card .muted {
  font-size: 13px;
  line-height: 1.7;
}
.equipment-control {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid #322727;
  padding: 16px 0;
  font: 10px var(--font-mono);
}
.equipment-control select {
  width: 100%;
  background: #100d0d;
  color: #d0c4bf;
  border: 1px solid #493736;
  padding: 10px;
  font: 11px var(--font-ui);
}
.workshop-actions,
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.workshop-actions .button,
.item-actions .button {
  font-size: 10px;
  padding: 13px 16px;
}
.item-actions {
  margin-top: 22px;
}
.item-actions > p,
.item-actions > form {
  width: 100%;
}
.upgrade-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-height: 470px;
  overflow: auto;
  margin: 22px 0;
}
.upgrade-pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid #392b29;
  padding: 12px;
  cursor: pointer;
  font-size: 11px;
  text-align: center;
}
.upgrade-pick:has(input:checked) {
  border-color: #d90018;
  background: #1e0d10;
}
.upgrade-pick > input {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  accent-color: #d90018;
}
.upgrade-pick .hat-art {
  height: 95px;
}
.listing-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.listing-form > p {
  width: 100%;
}
.listing-form input {
  width: 105px;
  background: #141010;
  color: #e7dbd4;
  border: 1px solid #57413c;
  padding: 10px;
  font: 12px var(--font-mono);
}
.wide-modal {
  width: 800px;
  max-height: 88svh;
  overflow: auto;
}
.supply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.supply-grid article {
  padding: 18px;
  border: 1px solid #3b2b28;
}
.supply-grid h3 {
  font: 24px var(--font-display);
  margin: 0 0 12px;
}
.supply-grid strong {
  display: block;
  margin: 12px 0 20px;
  font: 13px var(--font-mono);
  color: #d4b99c;
}
.supply-grid p {
  font-size: 12px;
  line-height: 1.7;
}
.supply-grid .button {
  padding: 13px;
  font-size: 9px;
  width: 100%;
}
#supply-catalog {
  margin-top: 20px;
}
#supply-catalog .item-card {
  padding: 12px;
}
.market-entry .button {
  width: 100%;
  padding: 14px;
  font-size: 10px;
}
.market-entry .item-card {
  width: 100%;
}
.market-entry .small-note {
  min-height: 30px;
}
.market-entry {
  min-width: 0;
}
.roulette-tracks.multiple-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}
.multiple-tracks .roulette {
  height: 175px;
  min-width: 0;
}
.multiple-tracks .reel .item-card {
  height: 155px;
}
.multiple-tracks .reel .hat-art {
  height: 83px;
  margin-bottom: 6px;
}
.opening-modal {
  max-height: 92svh;
  overflow: auto;
}
.reel .item-card .gem {
  height: 100px;
  margin-bottom: 8px;
}
.opening-modal .opening-status {
  font-size: 12px;
  line-height: 1.7;
}
.reel .item-card .effect-label {
  font-size: 7px;
}
@media (max-width: 1100px) {
  .navigation {
    gap: 20px;
  }
  .navigation nav {
    gap: 14px;
  }
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .navigation {
    height: 95px;
    align-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 12px 5%;
    justify-content: space-between;
  }
  .navigation nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .navigation .home-link {
    display: flex;
    min-width: 20px;
  }
  .navigation nav a {
    font-size: 8px;
  }
  .account-link {
    margin-left: auto !important;
  }
  .resource-bar {
    top: 103px;
    left: 5%;
    right: 5%;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 8px;
  }
  .resource-bar b {
    font-size: 11px;
  }
  .resource-bar .text-button {
    font-size: 8px;
    margin-left: auto;
  }
  .community-controls {
    top: calc(18% + 56px);
    right: 5%;
    gap: 14px;
  }
  .community-controls .text-button {
    font-size: 8px;
  }
  .content-view {
    padding-top: 160px;
  }
  .workshop-card {
    padding: 20px;
  }
  .equipment-control {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .upgrade-selection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .supply-grid {
    grid-template-columns: 1fr;
  }
  .chat-drawer {
    width: 100%;
    padding: 22px;
  }
  .wide-modal {
    padding: 26px 20px;
  }
  .roulette-tracks.multiple-tracks {
    grid-template-columns: 1fr;
    padding: 0 8px;
  }
  .multiple-tracks .roulette {
    height: 130px;
  }
  .multiple-tracks .reel .item-card {
    height: 118px;
    padding: 8px;
  }
  .multiple-tracks .reel .hat-art {
    height: 62px;
    margin-bottom: 0;
  }
  .multiple-tracks .reel .item-name {
    font-size: 10px;
  }
  .multiple-tracks .reel .item-meta {
    font-size: 8px;
  }
  .multiple-tracks .effect-label {
    display: none;
  }
  .avatar-presets {
    gap: 5px;
  }
  .resource-bar span {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hat-art:before,
  .hat-art:after {
    animation: none !important;
  }
  .hat-art[class*="effect-"] {
    outline: 1px solid #8e4d36;
  }
}
@media (max-width: 700px) {
  .leaderboard-trigger {
    top: 147px;
  }
  .community-controls {
    top: 207px;
  }
}
/* Workshop: visible item slots and direct manipulation. */
.workshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.workshop-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
}
.workshop-modules .workshop-card {
  padding: 24px;
  margin: 0;
  min-width: 0;
  overflow: visible;
}
.workshop-crafting {
  grid-column: 1/-1;
}
.workshop-announcement {
  min-height: 22px;
  margin: -10px 0 26px;
  font-size: 12px;
  line-height: 1.6;
  color: #ada19b;
}
.workshop-help-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  margin-bottom: 12px;
}
.workshop-help-heading h2 {
  margin: 0;
  cursor: help;
}
.workshop-help {
  display: grid;
  place-items: center;
  border: 1px solid #55413a;
  width: 22px;
  height: 22px;
  padding: 0;
  flex: 0 0 auto;
  color: #baa397;
  background: none;
  font: 11px var(--font-mono);
}
.workshop-help:hover,
.workshop-help:focus-visible {
  border-color: #d90018;
  color: #f1e7df;
}
.workshop-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 300px;
  max-width: 80vw;
  padding: 13px 15px;
  border: 1px solid #654339;
  border-left: 2px solid #d90018;
  background: #17100f;
  box-shadow: 0 12px 30px #000a;
  color: #ded1c8;
  font: 12px/1.6 var(--font-ui);
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s;
}
.workshop-help-heading:hover .workshop-tooltip,
.workshop-help-heading:focus-within .workshop-tooltip,
.workshop-button-help:hover .workshop-tooltip,
.workshop-button-help:focus-within .workshop-tooltip {
  opacity: 1;
  visibility: visible;
}
.workshop-button-help {
  display: inline-block;
  position: relative;
  max-width: 100%;
}
.workshop-button-help .button {
  font-size: 9px;
  padding: 13px 15px;
  max-width: 100%;
}
.workshop-caption {
  color: #a1938a;
  font: 10px/1.6 var(--font-mono);
  margin: 0 0 18px;
}
.workshop-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.workshop-slot-grid.single-slot {
  grid-template-columns: minmax(110px, 150px);
}
.craft-slot-grid {
  grid-template-columns: repeat(2, minmax(100px, 170px));
}
.workshop-drop {
  position: relative;
  min-height: 155px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px dashed #4c3731;
  background: #0e0b0a;
  padding: 9px 6px 6px;
  transition:
    border-color 0.14s,
    background 0.14s;
}
.workshop-drop:focus-visible {
  outline: 1px solid #e8ddd2;
  outline-offset: 3px;
}
.workshop-slot-label {
  font: 8px var(--font-mono);
  letter-spacing: 0.06em;
  color: #ab9386;
  padding: 0 3px 5px;
}
.workshop-slot-plus {
  margin: auto;
  color: #72554c;
  font: 28px var(--font-mono);
}
.workshop-slot-hint {
  color: #8b7970;
  font: 8px/1.5 var(--font-mono);
  text-align: center;
  margin: auto 0 9px;
}
.workshop-drop.is-filled {
  border-style: solid;
  border-color: #594039;
}
.workshop-drop.is-drag-ready {
  border-color: #984c45;
}
.workshop-drop.is-drag-over {
  background: #321316;
  border-color: #f33143;
  box-shadow:
    inset 0 0 0 1px #d90018,
    0 0 20px #b8001822;
}
.workshop-item-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}
.workshop-item-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid #3e302b;
  border-bottom: 2px solid var(--item-color, #79665c);
  background: #13100e;
  color: #d9cec4;
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.workshop-item-tile .hat-art {
  height: 76px;
  margin: 0 0 4px;
}
.workshop-item-tile .effect-label {
  font-size: 6px;
  padding: 3px 0;
}
.workshop-item-name {
  display: block;
  font: 10px/1.4 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workshop-item-note {
  font: 8px/1.5 var(--font-mono);
  color: #ac9688;
  margin-top: 5px;
}
.workshop-item-tile:hover {
  border-color: #99776a;
  background: #1c1311;
}
.workshop-item-tile > .item-stats {
  position: absolute;
  z-index: 5;
  left: 7px;
  right: 7px;
  bottom: 7px;
  max-height: calc(100% - 14px);
  overflow: hidden;
  margin: 0;
  padding: 8px 6px;
  border: 1px solid #5b4438;
  background: #0d0a0aeF;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}
.workshop-item-tile:hover > .item-stats,
.workshop-item-tile:focus-visible > .item-stats {
  opacity: 1;
  transform: translateY(0);
}
.workshop-item-tile.is-armed {
  outline: 1px solid #e42b3d;
  outline-offset: 2px;
}
.workshop-item-tile.is-drag-source {
  opacity: 0.28;
}
.workshop-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid #63413a;
  color: #e7b9ab;
  background: #160c0bec;
  font-size: 16px;
}
.workshop-remove:hover {
  background: #50161e;
  color: #fff;
}
.workshop-inventory {
  position: sticky;
  top: 22px;
  padding: 20px;
  min-width: 0;
  max-height: calc(100svh - 44px);
  overflow: auto;
}
.workshop-inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.workshop-inventory h2 {
  font: 26px var(--font-display);
  margin: 0;
}
.workshop-inventory .small-note {
  font-size: 11px;
}
.workshop-search input {
  display: block;
  width: 100%;
  border: 1px solid #4d3830;
  color: #d8c7bb;
  background: #0d0b0a;
  padding: 10px;
  font: 11px var(--font-ui);
  margin: 14px 0;
}
.workshop-return {
  padding: 11px;
  text-align: center;
  border: 1px dashed #5c4138;
  font: 9px var(--font-mono);
  color: #b39b8e;
  margin-bottom: 14px;
  cursor: pointer;
}
.workshop-return.is-drag-over {
  background: #341419;
  border-color: #ec223a;
  color: #f3ddd0;
}
.workshop-inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.workshop-inventory-empty {
  grid-column: 1/-1;
  color: #9f8d82;
  font-size: 12px;
  line-height: 1.7;
  padding: 14px 0;
}
.workshop-drag-ghost {
  position: fixed;
  top: 0;
  left: 0;
  width: 128px;
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
  filter: none;
  box-shadow: 0 10px 22px #0008;
  contain: layout paint;
  transform-origin: top left;
}
.workshop-drag-ghost *, .workshop-drag-ghost *::before, .workshop-drag-ghost *::after {
  animation: none !important;
  transition: none !important;
}
.workshop-drag-ghost .item-stats { display: none; }
.workshop-drag-ghost.is-awaiting-slot { opacity: .8; }
.workshop-drag-ghost .workshop-item-tile {
  border-color: #ec263b;
  background: #251310;
  cursor: grabbing;
}
.workshop-dragging,
.workshop-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
}
#view-upgrades[aria-busy="true"] .workshop-drop {
  opacity: 0.65;
}
#view-upgrades .workshop-card > .small-note {
  line-height: 1.7;
  margin: 14px 0;
  min-height: 18px;
}
#engine-status {
  font-size: 11px;
  line-height: 1.6;
  margin: 14px 0;
}
@media (max-width: 1200px) {
  .workshop-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .workshop-modules {
    grid-template-columns: 1fr;
  }
  .workshop-crafting {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  .workshop-layout {
    grid-template-columns: 1fr;
  }
  .workshop-inventory {
    position: relative;
    top: auto;
    grid-row: 1;
    max-height: 350px;
    padding: 18px;
  }
  .workshop-inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .workshop-item-tile .hat-art {
    height: 64px;
  }
  .workshop-modules .workshop-card {
    padding: 20px;
  }
  .workshop-slot-grid {
    gap: 8px;
  }
  .workshop-drop {
    min-height: 145px;
  }
  .workshop-item-name {
    font-size: 9px;
  }
  .workshop-tooltip {
    width: 270px;
    max-width: calc(100vw - 72px);
  }
  .workshop-slot-grid.single-slot {
    grid-template-columns: 150px;
  }
  .workshop-announcement {
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workshop-drop,
  .workshop-tooltip {
    transition: none;
  }
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.workshop-modules {
  align-items: start;
}
/* Unlimited-case economy: two resources, one connected farm. */
.resource-bar {
  flex-wrap: wrap;
  gap: 14px 24px;
}
.wallet-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.resource-bar .wallet-actions button {
  margin: 0;
  font-size: 9px;
}
.debt-resource {
  color: #d78579;
}
.key-choice {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}
.engine-fuel-module {
  grid-column: 1/-1;
}
.farm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.farm-heading h2 {
  margin: 0;
}
.farm-heading .technical-label {
  color: #b68175;
  font-size: 8px;
}
.engine-workbench {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.6fr);
  margin-top: 24px;
}
.engine-compartment {
  padding-right: 24px;
  border-right: 1px solid #47332c;
}
.fuel-compartment {
  min-width: 0;
  padding-left: 24px;
}
.engine-workbench h3 {
  font: 26px var(--font-display);
  margin: 0;
}
.engine-workbench .workshop-caption {
  min-height: 36px;
}
.engine-workbench .single-slot {
  grid-template-columns: minmax(0, 1fr);
  max-width: 180px;
}
.farm-output {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  border-top: 1px solid #47332c;
  padding-top: 18px;
  margin-top: 24px;
  font: 10px var(--font-mono);
  color: #b29b8c;
}
.farm-output strong {
  color: #efcfb1;
  font: 22px var(--font-display);
}
#farm-projection {
  width: 100%;
  font-size: 10px;
  line-height: 1.8;
}
.item-stats {
  display: grid;
  gap: 4px;
  border-top: 1px solid #49382c;
  padding-top: 8px;
  margin-top: 9px;
  font: 8px/1.4 var(--font-mono);
  text-align: left;
}
.item-stats > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #a99b8d;
}
.item-stats b {
  font-weight: 400;
  color: #ded0b9;
  white-space: nowrap;
}
.workshop-drag-ghost {
  width: 170px;
}
.weekly-modal {
  width: min(800px, calc(100vw - 32px));
}
.daily-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0;
}
.daily-day {
  border: 1px solid #302a27;
  padding: 16px 6px;
  display: grid;
  gap: 15px;
  text-align: center;
  background: #0e0b0a;
  font: 9px var(--font-mono);
  color: #93877e;
}
.daily-day strong {
  color: #c7baa8;
  font-size: 10px;
}
.daily-day.is-current {
  border-color: #e02e42;
  background: #241014;
  box-shadow: inset 0 2px #e02e42;
}
.daily-day.is-current strong {
  color: #fff1df;
}
.daily-day.is-complete {
  border-color: #5e5b39;
  color: #a1a377;
}
@keyframes income-tick {
  0% {
    color: #fff;
    text-shadow: 0 0 14px #eac799;
  }
  100% {
    text-shadow: none;
  }
}
.income-tick {
  animation: income-tick 0.7s ease-out;
}
/* A colored outer frame belongs to each actual specimen, including reels. */
.cosmetic-frame {
  --frame: #72716d;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--frame);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--frame) 10%, #0b0b0b),
    #080808 70%
  );
  box-shadow: inset 0 3px var(--frame);
}
.cosmetic-frame.uncommon {
  --frame: #78a56d;
}
.cosmetic-frame.rare {
  --frame: #5994db;
}
.cosmetic-frame.legendary {
  --frame: #d5aa52;
}
.cosmetic-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--frame) 28%, transparent);
  clip-path: polygon(
    0 0,
    14px 0,
    14px 1px,
    1px 1px,
    1px 14px,
    0 14px,
    0 0,
    100% 0,
    100% 14px,
    calc(100% - 1px) 14px,
    calc(100% - 1px) 1px,
    calc(100% - 14px) 1px,
    calc(100% - 14px) 0,
    100% 0,
    100% 100%,
    calc(100% - 14px) 100%,
    calc(100% - 14px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - 1px),
    calc(100% - 1px) calc(100% - 14px),
    100% calc(100% - 14px),
    100% 100%,
    0 100%,
    0 calc(100% - 14px),
    1px calc(100% - 14px),
    1px calc(100% - 1px),
    14px calc(100% - 1px),
    14px 100%,
    0 100%
  );
  pointer-events: none;
  z-index: 3;
}
.workshop-item-shell.cosmetic-frame {
  border: 0;
  background: none;
  box-shadow: none;
}
.workshop-item-shell.cosmetic-frame::after {
  display: none;
}
.unusual-frame {
  border-width: 2px;
  box-shadow:
    inset 0 3px var(--frame),
    0 0 16px color-mix(in srgb, var(--frame) 18%, transparent);
}
.unusual-frame .item-meta {
  color: var(--frame);
}
.frame-smoke {
  --frame: #b6a6d2 !important;
  background-image:
    radial-gradient(ellipse at 20% 15%, #b6a6d21f, transparent 65%),
    linear-gradient(140deg, #16111e, #080808);
}
.frame-smoke .hat-art {
  animation: frame-mist 4s ease-in-out infinite alternate;
}
.frame-sparks {
  --frame: #ed8b46 !important;
  background-image:
    radial-gradient(circle at 10% 20%, #e5542b22, transparent 50%),
    linear-gradient(140deg, #21120b, #080808);
  animation: frame-ember 2.4s ease-in-out infinite;
}
.frame-orbit {
  --frame: #ee4766 !important;
  background-image: linear-gradient(125deg, #37101a70, #09090c 60%);
}
.frame-orbit::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ed54757a;
  border-radius: 40%;
  transform: rotate(-15deg);
  animation: frame-orbit 7s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes frame-mist {
  to {
    filter: drop-shadow(0 -4px 9px #ad98d14d);
  }
}
@keyframes frame-ember {
  50% {
    box-shadow:
      inset 0 3px #f5a662,
      0 0 14px #ee6c3c40;
  }
}
@keyframes frame-orbit {
  to {
    transform: rotate(345deg);
  }
}
@media (max-width: 700px) {
  .resource-bar {
    gap: 9px 16px;
    top: 84px;
  }
  .resource-bar .wallet-actions {
    order: 4;
    width: 100%;
  }
  .engine-workbench {
    grid-template-columns: 1fr;
  }
  .engine-compartment {
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid #47332c;
  }
  .fuel-compartment {
    padding: 24px 0 0;
  }
  .daily-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .item-stats {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cosmetic-frame,
  .cosmetic-frame .hat-art,
  .cosmetic-frame::before,
  .income-tick {
    animation: none !important;
  }
}
@media (max-width: 700px) {
  .resource-bar {
    top: 104px;
  }
  .content-view {
    padding-top: 195px;
  }
}
.workshop-item-shell.cosmetic-frame {
  animation: none;
}
.workshop-item-shell.cosmetic-frame::before {
  display: none;
}
/* Compact collection: controls stay above a paged, viewport-sized grid. */
#view-inventory:not(.hidden) {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 560px;
  padding-top: 145px;
  padding-bottom: 20px;
  gap: 10px;
  overflow: hidden;
}
#view-inventory .page-heading {
  flex-shrink: 0;
  margin: 0;
  padding-bottom: 12px;
}
#view-inventory .page-heading h1 {
  font-size: 38px;
}
#view-inventory .technical-label {
  margin-bottom: 8px;
}
#view-inventory .inventory-tools {
  margin: 0;
  flex-shrink: 0;
  gap: 16px;
}
#view-inventory .inventory-tools input,
#view-inventory .inventory-tools select {
  padding-top: 8px;
  padding-bottom: 8px;
}
#view-inventory .inventory-summary {
  margin: 0;
  padding: 0;
  font-size: 9px;
  flex-shrink: 0;
}
.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font: 10px var(--font-mono);
  flex-shrink: 0;
}
.inventory-pagination button {
  font-size: 9px;
  padding: 5px 0;
}
#inventory {
  flex: 1;
  min-height: 0;
  gap: 12px;
  align-content: stretch;
}
#inventory .item-card {
  padding: 12px 10px 8px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#inventory .item-card .hat-art {
  flex: 1;
  min-height: 35px;
  height: auto;
  margin: 0 0 6px;
}
#inventory .item-name {
  font-size: 11px;
  line-height: 1.3;
  margin: 0 0 6px;
}
#inventory .item-meta {
  font-size: 8px;
  margin: 0;
  gap: 4px;
}
.inventory-item-status {
  display: block;
  min-height: 13px;
  margin-top: 5px;
  font: 7px/1.5 var(--font-mono);
  color: #ad9b84;
}
#inventory .empty {
  grid-column: 1/-1;
  grid-row: 1/-1;
  padding: 10px;
}
/* Item actions are at the top, with all workshop properties in one disclosure. */
.inspector {
  width: min(830px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 30px;
  overflow: auto;
}
.inspector h2 {
  margin: 10px 36px 18px 0;
  font-size: 32px;
}
.inspector .item-actions {
  margin: 0;
  gap: 8px;
}
.inspector .item-actions .button {
  padding: 11px 12px;
  font-size: 9px;
}
.inspection-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
  align-items: start;
}
.inspector .inspected-art {
  width: 100%;
  height: 230px;
  margin: 0;
  padding: 16px;
  overflow: hidden;
}
.inspected-art .hat-art {
  height: 100%;
}
.inspector dl {
  margin: 0;
}
.inspector dl > div {
  padding: 10px 0;
}
.inspection-workshop {
  margin-top: 14px;
  font: 9px/1.6 var(--font-mono);
  color: #aaa096;
}
.inspection-workshop summary {
  cursor: pointer;
}
.inspection-workshop .item-stats {
  font-size: 10px;
  gap: 7px;
}
.action-locked {
  color: #777 !important;
  border-color: #343434 !important;
  background: #111 !important;
  cursor: help;
}
.action-locked:hover {
  color: #b0a79e !important;
  border-color: #70675f !important;
}
#item-lock-reason {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
.listing-form {
  padding: 12px;
  border: 1px solid #463029;
  align-items: end;
}
.listing-form label {
  display: grid;
  gap: 6px;
  font: 8px var(--font-mono);
  color: #aa9585;
}
.listing-form input {
  padding: 8px;
}
/* Owner's profile and shared player profiles. */
.upload-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  margin: 16px 0 0;
  font: 9px var(--font-mono);
  cursor: pointer;
  overflow: hidden;
}
.upload-label input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  cursor: pointer;
}
.upload-label:focus-within {
  outline: 2px solid #ea3449;
  outline-offset: 3px;
}
.profile-collection > h2,
.player-modal h3 {
  font: 26px var(--font-display);
  margin: 24px 0 16px;
}
.profile-best {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 30px;
}
.mini-hat.item-card {
  padding: 9px;
  min-width: 0;
  text-align: left;
}
.mini-hat.item-card .hat-art {
  height: 66px;
  margin: 0 0 8px;
}
.mini-hat .item-name {
  font-size: 10px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.mini-hat .item-meta {
  font-size: 7px;
  flex-wrap: wrap;
  gap: 4px;
}
.mini-hat .effect-label {
  font-size: 6px;
}
.compact-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
#cosmetic-showcase > .item-card {
  width: 100%;
  max-width: 280px;
  margin: 22px auto 10px;
}
#profile-rank {
  color: #b6a284;
  line-height: 1.8;
}
.player-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #d8d0c8;
  font: 12px var(--font-ui);
  text-align: left;
  cursor: pointer;
}
.player-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.player-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: 90svh;
  overflow: auto;
  padding: 32px;
}
.public-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-right: 30px;
}
.public-identity h2 {
  font-size: 32px;
  margin: 6px 0;
}
.public-showcase {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.public-showcase .mini-hat {
  width: 240px;
}
.public-showcase .hat-art {
  height: 170px !important;
}
.public-pages {
  display: flex;
  align-items: center;
  gap: 18px;
  font: 10px var(--font-mono);
}
.profile-history-row {
  display: grid !important;
  grid-template-columns: 150px 1fr !important;
  gap: 18px;
  align-items: center;
}
.history-list li {
  grid-template-columns: 30px 52px minmax(0, 1fr) auto;
  gap: 12px;
}
.history-hat {
  width: 52px;
  height: 52px;
  padding: 4px;
  overflow: hidden;
}
.history-hat .hat-art {
  height: 42px;
}
.history-hat .effect-label {
  display: none;
}
/* Each seller has one clearly identified stock of real listings. */
#market-list {
  display: block;
}
.seller-stock {
  margin: 0 0 34px;
  border-top: 1px solid #392d28;
}
.seller-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}
.seller-heading > span {
  font: 8px var(--font-mono);
  color: #9b8b7e;
}
.seller-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.market-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.market-entry .item-card {
  flex: 1;
}
.market-entry .button {
  margin: 0;
  padding: 11px 8px;
  font-size: 9px;
}
.market-price {
  font: 9px var(--font-mono);
  color: #c8a77e;
}
@media (max-width: 700px) {
  #view-inventory:not(.hidden) {
    padding-top: 180px;
    min-height: 650px;
    gap: 9px;
  }
  #view-inventory .page-heading h1 {
    font-size: 27px;
  }
  #view-inventory .inventory-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  #view-inventory .search-field {
    grid-column: 1/-1;
  }
  #view-inventory .select-field {
    min-width: 0;
  }
  #view-inventory .select-field select {
    max-width: 100%;
    font-size: 10px;
  }
  #inventory .item-name {
    font-size: 10px;
  }
  .inspector {
    padding: 22px 18px;
  }
  .inspector h2 {
    font-size: 25px;
  }
  .inspection-body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 14px;
  }
  .inspector .inspected-art {
    height: 175px;
    padding: 8px;
  }
  .inspector dl {
    font-size: 10px;
  }
  .inspector dl > div {
    gap: 8px;
    padding: 8px 0;
  }
  .inspector .item-actions .button {
    font-size: 8px;
    padding: 10px;
  }
  .profile-best {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compact-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-modal {
    padding: 24px 18px;
  }
  .public-identity {
    gap: 14px;
  }
  .public-identity h2 {
    font-size: 26px;
  }
  .seller-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .market-entry .hat-art {
    height: 105px;
  }
  .history-list li {
    grid-template-columns: 22px 42px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .history-hat {
    width: 42px;
    height: 42px;
  }
  .history-hat .hat-art {
    height: 32px;
  }
}
.inspector .item-actions > .button {
  width: auto;
  margin: 0;
  flex: 1 1 auto;
}
.inspector .listing-form .button {
  width: auto;
  margin: 0;
}
.upload-label {
  text-decoration: none;
}
.upload-label input {
  margin: 0;
  max-width: none;
}
.profile-identity-header {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.profile-identity-header .profile-avatar {
  width: clamp(64px, 8vw, 88px);
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  margin: 0;
  border-color: #392b2d;
}
.profile-identity-copy { min-width: 0; }
.identity-panel #profile-name {
  margin: 0 0 9px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}
.profile-identity-copy #profile-rank {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.profile-identity-score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
  margin: 0;
}
.profile-identity-score strong { font: 22px var(--font-mono); color: #f0ecec; }
.profile-identity-score span { font: 10px var(--font-mono); color: #a59b9d; }
.identity-panel > .profile-avatar-button {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  letter-spacing: 0.07em;
}
#avatar-upload-note { margin: 10px 0 0; line-height: 1.6; text-align: left; }
#avatar-upload-status { margin: 8px 0 0; color: #d9c6c9; text-align: left; }
#avatar-upload-status:empty { display: none; }
#cosmetic-showcase {
  margin-top: 22px;
}
#view-inventory .empty .button {
  padding: 10px 14px;
  margin-top: 8px;
}

/* Chat unfolds beneath its trigger and leaves the case interactive. */
.chat-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  width: 310px;
  height: min(420px, calc(100svh - 260px));
  min-height: 250px;
  padding: 0;
  border: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.78) 0%,
    rgba(6, 6, 6, 0.35) 65%,
    rgba(5, 5, 5, 0.05) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
  transform-origin: top right;
  animation: chat-unfold 180ms cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.chat-panel::before {
  display: none;
}
.chat-panel[hidden] {
  display: none;
}
#chat-header-actions {
  display: flex;
  justify-content: flex-end;
  padding: 4px 10px 0;
}
.chat-panel #chat-older {
  padding: 2px 0;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #7a706b;
  opacity: 0.6;
}
.chat-panel #chat-older:hover {
  opacity: 1;
  color: #c5bbb5;
}
.chat-panel #chat-log {
  flex: 1;
  min-height: 60px;
  padding: 4px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.chat-panel .chat-message {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 0;
  border-bottom: none;
}
.chat-panel .chat-avatar-mini {
  width: 17px;
  height: 17px;
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.75;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-panel .chat-message > div {
  min-width: 0;
  flex: 1;
}
.chat-panel .chat-message-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.2;
}
.chat-panel .chat-nickname {
  font: 11px var(--font-ui);
  font-weight: 500;
  color: #cfc5bf;
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-panel .chat-nickname:hover {
  color: #fff;
}
.chat-panel time {
  font-size: 8px;
  font-family: var(--font-mono);
  color: #554d49;
  flex-shrink: 0;
}
.chat-panel .chat-message p {
  font-size: 11px;
  line-height: 1.4;
  margin: 1px 0 0;
  color: #9e9590;
  word-break: break-word;
}
.chat-panel .chat-message .text-button {
  font-size: 8px;
  margin-top: 3px;
  margin-right: 8px;
  opacity: 0.5;
}
.chat-panel .chat-message .text-button:hover {
  opacity: 1;
}
.chat-panel form {
  border-top: none;
  padding: 6px 10px 10px;
  background: transparent;
}
.chat-panel input#chat-input {
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(217, 0, 24, 0.6);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.45);
  color: #e5d9d1;
  font: 11px var(--font-ui);
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.chat-panel input#chat-input:focus {
  border-color: rgba(255, 255, 255, 0.18);
  border-left-color: var(--color-accent);
  background: rgba(14, 12, 12, 0.7);
}
.chat-panel input#chat-input::placeholder {
  color: #524b47;
  font-size: 10px;
}
.chat-panel #chat-error {
  font-size: 9px;
  margin: 4px 0 0;
}
.chat-panel .empty {
  padding: 20px 8px;
  text-align: center;
}
.chat-panel .empty-symbol {
  font-size: 18px;
  margin: 0 0 4px;
  opacity: 0.4;
}
.chat-panel .empty h2 {
  font-size: 12px;
  margin: 4px 0;
  color: #888;
}
.chat-panel .empty p {
  font-size: 10px;
  line-height: 1.5;
  color: #666;
}
#show-chat::after {
  content: "−";
  margin-left: 7px;
  color: #9d4a51;
}
#show-chat[aria-expanded="false"]::after {
  content: "+";
}
@keyframes chat-unfold {
  from {
    opacity: 0;
    transform: translateY(-4px) scaleY(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  #view-home {
    overflow: visible;
  }
  #view-home .community-controls {
    top: calc(max(100svh, 700px) + 12px);
    right: 5%;
    width: 90%;
    justify-content: flex-end;
    padding-bottom: 14px;
  }
  .chat-panel {
    width: 100%;
    height: 360px;
    max-height: none;
    right: 0;
    top: 100%;
    margin-bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel {
    animation: none;
  }
}
