@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/quicksand.woff2") format("woff2");
}

:root {
  --bg: #060608;
  --ink: #f4f4f8;
  --yellow: #ffce49;
  --pill: #101116;
  --pill-hover: #16171e;
  --pill-edge: #23242e;
  --grey: #9a9aa8;
  --grey-pill: #101116;
  --line: #23242e;
  --line-2: #34353f;

  --sunk: #0e0f14;
  --placeholder: #61626f;
  --msg-name: #9db9ff;
  --msg-body: #dfe0e6;
  --msg-time: #61626f;
  --danger: #ff6b6b;
  --scroll: #2a2b34;
}

:root[data-theme="light"] {
  --bg: #f3f4f7;
  --ink: #1a1b22;
  --yellow: #b8860b;
  --pill: #ffffff;
  --pill-hover: #f0f1f5;
  --pill-edge: #e0e2e9;
  --grey: #5c5d6b;
  --grey-pill: #ffffff;
  --line: #e0e2e9;
  --line-2: #cfd2db;

  --sunk: #eceef3;
  --placeholder: #9a9ba8;
  --msg-name: #2456c4;
  --msg-body: #24252c;
  --msg-time: #9a9ba8;
  --danger: #d23b3b;
  --scroll: #cfd2db;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: "Quicksand", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  min-height: 100vh;
  padding-bottom: 60px;
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.logo {
  position: static;
  transform: none;
  width: auto;
  height: 30px;
  pointer-events: none;
  filter: none;
}

.banner { display: none; }

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.welcome {
  margin: 40px auto 0;
  padding: 6px 10px;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section {
  margin-top: 46px;
}

.label {
  display: inline-block;
  background: var(--grey-pill);
  color: var(--grey);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  letter-spacing: 3px;
  font-size: 13px;
}

.row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-block;
  background: var(--pill);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0;
  padding: 11px 20px;
  border: 1px solid var(--pill-edge);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  background: var(--pill-hover);
  border-color: var(--line-2);
}

.btn:active { transform: translateY(1px); }

.btn.small {
  font-size: 13px;
  padding: 8px 15px;
}

.badge {
  display: block;
  width: min(150px, 42vw);
  height: auto;
  margin: 34px auto 0;
}

.note {
  margin-top: 26px;
  line-height: 1.75;
  font-size: 14px;
}

.dim { color: var(--grey); }

.sign {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sign .note { margin-top: 0; }

.bar {
  width: min(320px, 90%);
  height: 3px;
  border-radius: 999px;
  background: var(--line-2);
}

.dots::after {
  content: "";
  animation: dots 1.6s steps(1, end) infinite;
}

@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

.caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--yellow);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.trail {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}

.trail svg {
  position: absolute;
  will-change: transform, opacity;
  animation: heart-drift var(--life) linear forwards;
}

@keyframes heart-drift {
  0% {
    transform: translate(-50%, -50%) scale(0.85) rotate(var(--rot));
    opacity: 0;
  }
  10% { opacity: 1; }
  70% { opacity: 1; }
  100% {

    transform:
      translate(calc(-50% + var(--drift)), calc(-50% - var(--rise)))
      scale(0.8)
      rotate(calc(var(--rot) * 1.6));
    opacity: 0;
  }
}

.field {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.input {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
  border-radius: 999px;
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  padding: 12px 18px;
  outline: none;
  text-align: center;
}

.input::placeholder { color: var(--placeholder); letter-spacing: 1px; }
.input:focus { border-color: var(--yellow); }

:root[data-ads="off"] .ad { display: none !important; }
:root[data-chat="off"] .chat-link { display: none !important; }

.btn.on {
  background: var(--yellow);
  color: var(--bg);
  border-color: var(--yellow);
}

.sub { margin-top: 30px; }
.small-label { font-size: 11px; letter-spacing: 2px; }
.stack.tight { gap: 8px; margin-top: 0; align-items: flex-start; }
.link { color: var(--yellow); }

.avatar-row {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
}

.avatar.big { width: 72px; height: 72px; }

.avatar.blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 26px;
}

.avatar.tiny {
  width: 20px;
  height: 20px;
  vertical-align: -5px;
  margin-right: 6px;
  font-size: 11px;
}

.save-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.save-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: left;
}

.save-row .dim { font-size: 11px; }

.stack {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.stack .input { width: min(320px, 100%); flex: none; text-align: center; }

.log {
  margin-top: 22px;
  height: min(68vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
  border-radius: 9px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.msg {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg-name { color: var(--msg-name); margin-right: 7px; text-decoration: none; }
a.msg-name:hover { text-decoration: underline; }
.msg-name::after { content: ":"; }
.msg.mine .msg-name { color: var(--yellow); }
.msg-body { color: var(--msg-body); }
.msg-time { color: var(--msg-time); font-size: 11px; margin-left: 8px; }

.msg.notice {
  color: var(--grey);
  font-style: normal;
  text-align: center;
  font-size: 13px;
}

.mod {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #ff6b6b;
  font-family: inherit;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
  padding: 2px 5px;
  margin-left: 6px;
  border-radius: 4px;
  cursor: pointer;

  opacity: 0.6;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.msg:hover .mod, .mod:focus-visible { opacity: 1; }
.mod:hover { background: #2a1414; border-color: #ff6b6b; }

.who { font-size: 12px; letter-spacing: 1px; align-self: center; }

.log::-webkit-scrollbar { width: 10px; }
.log::-webkit-scrollbar-track { background: var(--sunk); }
.log::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 5px; }

.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.card {
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.card:hover { background: var(--pill-hover); border-color: var(--line-2); }

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--sunk);
}

.card span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  word-break: break-word;
}

.stage {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
  flex-direction: column;
}

.stage.on { display: flex; }

.stage-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--sunk);
  border-bottom: 1px solid var(--line);
}

.stage-search {
  display: flex;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
}

.input.flat {
  flex: 1 1 auto;
  text-align: left;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: 1px;
}

@media (max-width: 620px) {
  .stage-bar { flex-wrap: wrap; }
  .stage-search { order: -1; flex-basis: 100%; }
}

.stage iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.status {
  margin-top: 18px;
  min-height: 20px;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 1px;
}

.status.err { color: var(--danger); }

.thumb {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 auto;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 2px 4px;
  color: #000;
  background: var(--yellow);
}

.msg-body code {
  background: var(--sunk);
  padding: 1px 4px;
  border-radius: 3px;
}
.msg-body pre.code {
  background: var(--sunk);
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre;
}
.msg-body strong { color: var(--yellow); }
.msg-body em { font-style: italic; }

.server { display: flex; gap: 10px; align-items: stretch; text-align: left; }

.channels {
  flex: 0 0 138px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  background: var(--sunk);
  border-radius: 4px;
  overflow-y: auto;
}

.chan-head {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-top: 6px;
}
.chan-head:first-child { margin-top: 0; }

.chan {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
}
.chan:hover { color: var(--fg); background: var(--line); }
.chan.on { color: #000; background: var(--yellow); }
.chan.live { color: var(--yellow); }

.voice-roster, .people {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--dim);
  padding-left: 6px;
}
.people span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.voice-who {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.voice-who .avatar {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  font-size: 10px;
  margin: 0;
  vertical-align: 0;
}
.voice-who .nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-who .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--line);
}
.voice-who.talking .dot { background: #3ad16b; box-shadow: 0 0 5px #3ad16b; }
.voice-who.talking .nick { color: var(--fg); }

.room-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 0 0; }

.react {
  border: 1px solid var(--line);
  background: var(--sunk);
  color: var(--fg);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
}
.react:hover { border-color: var(--yellow); }
.react.mine { border-color: var(--yellow); color: var(--yellow); }

@media (max-width: 620px) {
  .server { flex-direction: column; }
  .channels { flex: 1 1 auto; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .chan { width: auto; }
  .people, .voice-roster { flex-direction: row; flex-wrap: wrap; gap: 6px; }
}

.ctx {
  position: fixed;
  z-index: 60;
  min-width: 150px;
  padding: 5px;
  background: var(--sunk);
  border: 2px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ctx-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding-bottom: 4px;
  margin-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.ctx-emoji button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 3px;
  border-radius: 3px;
}
.ctx-emoji button:hover { background: var(--line); }

.ctx-item {
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 5px 7px;
  border-radius: 3px;
  cursor: pointer;
}
.ctx-item:hover { background: var(--line); }
.ctx-item.danger { color: #ff6b6b; }
.ctx-item.danger:hover { background: #ff6b6b; color: #000; }

.profile-head {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  flex-wrap: wrap;
}

.avatar.huge { width: 96px; height: 96px; flex: 0 0 auto; font-size: 34px; }

.profile-side { flex: 1 1 260px; min-width: 0; }

.profile-name {
  font-size: 18px;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
}

.tag {
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--grey-pill);
  color: var(--grey);
  border: 1px solid var(--pill-edge);
}

.tag.friend { color: var(--yellow); border-color: var(--yellow); }

.tight-row { margin-top: 14px; justify-content: flex-start; gap: 10px; }

.about {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--msg-body);
}

.input.area {
  display: block;
  width: 100%;
  margin-top: 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
}

.small-note { font-size: 11px; letter-spacing: 1px; align-self: center; }

.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--bg); }

.chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  color: var(--yellow);
  text-decoration: none;
}

.chip:hover { background: var(--pill-hover); }

.mates {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.mate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 11px 5px 6px;
  border-radius: 20px;
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  color: var(--yellow);
  text-decoration: none;
  min-width: 0;
}

.mate:hover { background: var(--pill-hover); }
.mate .avatar { margin-right: 0; vertical-align: 0; }
.mate span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mate-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
  border-radius: 9px;
  padding: 8px 12px;
  text-align: left;
}

.mate-row .mate { background: none; border: 0; padding: 0; font-size: 13px; }
.mate-row .mate:hover { background: none; text-decoration: underline; }

.mate-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ad16b;
  box-shadow: 0 0 5px #3ad16b;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .profile-head { justify-content: center; }
  .profile-name { justify-content: center; }
  .profile-head, #about { text-align: center; }
  .tight-row { justify-content: center; }
}

.report {
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  border-radius: 9px;
  overflow: hidden;
  text-align: left;
}

.report-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--yellow);
  font: inherit;
  font-size: 13px;
  padding: 11px 13px;
  cursor: pointer;
}

.report-head:hover { background: var(--pill-hover); }
.report-head.open { background: var(--pill-hover); }
.report-head::after {
  content: "tap to read it all";
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--grey);
}
.report-head.open::after { content: "tap to fold it away"; }

.report-who { font-weight: 700; letter-spacing: 1px; }
.report.done .report-who { color: var(--grey); }
.report-gist { font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }

.report-full {
  padding: 2px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}

.report-field .about { margin-top: 0; width: 100%; font-size: 13px; text-align: left; }

.shot-preview {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  align-self: flex-start;
  border-radius: 8px;
  border: 1px solid var(--pill-edge);
  display: block;
}

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sheet {
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.sheet > * { flex: none; }
.sheet-title { color: var(--yellow); font-size: 15px; letter-spacing: 2px; }

.sheet-quote {
  background: var(--sunk);
  border: 1px solid var(--pill-edge);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--msg-body);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 140px;
  overflow-y: auto;
}

.sheet .input.area {
  margin-top: 0;
  flex: none;
  width: 100%;
  min-height: 84px;
}

.sheet .row { margin-top: 0; }
.sheet .status { margin-top: 0; min-height: 0; }

.sheet::-webkit-scrollbar, .sheet-quote::-webkit-scrollbar,
.report-field .about::-webkit-scrollbar { width: 10px; height: 10px; }
.sheet::-webkit-scrollbar-track, .sheet-quote::-webkit-scrollbar-track,
.report-field .about::-webkit-scrollbar-track { background: var(--sunk); }
.sheet::-webkit-scrollbar-thumb, .sheet-quote::-webkit-scrollbar-thumb,
.report-field .about::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 5px; }

.sheet, .sheet-quote { scrollbar-width: thin; scrollbar-color: var(--scroll) var(--sunk); }
.sheet-quote { overflow-x: hidden; }

#arena {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 14px auto 0;
  background: var(--sunk);
  border: 2px solid var(--line);
  border-radius: 10px;
  touch-action: none;
  cursor: crosshair;
}

.scoreline {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1px;
}

.scoreline .clock {
  background: var(--grey-pill);
  border: 1px solid var(--pill-edge);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--yellow);
}

.score-chip {
  background: var(--pill);
  border: 1px solid var(--pill-edge);
  border-radius: 8px;
  padding: 4px 10px;
}

.lobby-name {
  font-size: 13px;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

:root[data-mode="play"] .chat-link,
:root[data-mode="play"] .social-link { display: none !important; }
:root[data-mode="social"] .play-link { display: none !important; }

.pick {
  margin-top: 34px;
  min-height: max(46vh, 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
}

.pick-head {
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--yellow);
}

.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  width: 100%;
}

.pick-card {
  flex: 1 1 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 22px;
  background: var(--pill);
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: var(--yellow);
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.pick-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  background: var(--pill-hover);
}

.pick-card.social:hover { border-color: #ffce49; }

.pick-card.last { border-color: var(--yellow); }

.pick-card.last .pick-name::after {
  content: "last time";
  display: block;
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
}

.pick-shot {
  width: 100%;
  max-width: 236px;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.pick-shot .sh-bg { fill: var(--sunk); }
.pick-shot .sh-bar { fill: var(--grey-pill); }
.pick-shot .sh-mark { fill: var(--yellow); }
.pick-shot .sh-line { fill: var(--pill-edge); }
.pick-shot .sh-tile rect { fill: var(--pill); stroke: var(--pill-edge); stroke-width: 1; }

.pick-shot .sh-rail { fill: #0e0f14; }
.pick-shot .sh-side { fill: #14151b; }
.pick-shot .sh-orb { fill: #ffce49; }
.pick-shot .sh-dim { fill: #2a2b34; }
.pick-shot .sh-head { fill: #61626f; }
.pick-shot .sh-on { fill: #23242e; }
.pick-shot .sh-face { fill: #4e5058; }
.pick-shot .sh-name { fill: #b5bac1; }
.pick-shot .sh-body { fill: #61626f; }
.pick-shot .sh-box { fill: #14151b; }

.pick-card.social .pick-shot .sh-bg { fill: #101116; }
.pick-card.social .pick-shot .sh-line { fill: #4e5058; }

.pick-card:hover .pick-shot { border-color: var(--yellow); }
.pick-card.social:hover .pick-shot { border-color: #ffce49; }
.pick-name { font-size: 15px; letter-spacing: 2px; text-align: center; }

.pick-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
  letter-spacing: 1px;
}

.pick-foot { font-size: 12px; letter-spacing: 1px; margin-top: 4px; }

.pick-badge { width: 92px; height: auto; opacity: 0.85; }

.verify-gate {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--pill);
  border-top: 1px solid var(--pill-edge);
  color: var(--grey);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: center;
}

.verify-gate-link {
  color: var(--yellow);
  text-decoration: none;
  border: 1px solid var(--yellow);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}

.verify-gate-link:hover { background: var(--yellow); color: var(--bg); }

:root[data-mode="social"] {
  --bg: #060608;
  --ink: #f4f4f8;
  --yellow: #ffce49;
  --pill: #14151b;
  --pill-hover: #1a1b22;
  --pill-edge: #2a2b34;
  --grey: #9a9aa8;
  --grey-pill: #14151b;
  --line: #23242e;
  --sunk: #0e0f14;
  --placeholder: #61626f;
  --msg-name: #9db9ff;
  --msg-body: #dfe0e6;
  --msg-time: #61626f;
  --scroll: #2a2b34;
}

:root[data-mode="social"] .btn { border-radius: 4px; }
:root[data-mode="social"] .btn.on,
:root[data-mode="social"] .pick-card.social:hover { background: #ffce49; color: #0b0b0f; border-color: #ffce49; }
:root[data-mode="social"] .banner { filter: saturate(0) brightness(0.5); }
:root[data-mode="social"] .label { text-transform: uppercase; }
:root[data-mode="social"] .link,
:root[data-mode="social"] .mate,
:root[data-mode="social"] .chip { color: #ffce49; }

:root[data-mode="social"] .wrap { max-width: min(1220px, 97vw); }

:root[data-mode="social"] .dc {
  display: flex;
  height: min(74vh, 700px);
  margin-top: 20px;
  background: #101116;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  border: 1px solid #0e0f14;
}

:root[data-mode="social"] .dc-rail {
  flex: 0 0 68px;
  background: #0e0f14;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

:root[data-mode="social"] .dc-orb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #101116;
  color: #dfe0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-radius 0.15s ease, background 0.15s ease;
}

:root[data-mode="social"] .dc-orb:hover { border-radius: 16px; background: #ffce49; color: #0b0b0f; }
:root[data-mode="social"] .dc-orb.on { border-radius: 16px; background: #ffce49; color: #0b0b0f; }

:root[data-mode="social"] .dc-side {
  flex: 0 0 228px;
  background: #14151b;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

:root[data-mode="social"] .dc-title {
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  color: #f4f4f8;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid #1f2023;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

:root[data-mode="social"] .dc-chans {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

:root[data-mode="social"] .chan-head {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: #9a9aa8;
  letter-spacing: 0.5px;
  margin-top: 14px;
  padding-left: 6px;
}
:root[data-mode="social"] .chan-head:first-child { margin-top: 0; }

:root[data-mode="social"] .chan {
  font-size: 14px;
  color: #9a9aa8;
  padding: 7px 8px;
  border-radius: 4px;
  letter-spacing: 0;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
}

:root[data-mode="social"] .chan:hover { background: #1a1b22; color: #dfe0e6; }
:root[data-mode="social"] .chan.on { background: #23242e; color: #ffffff; }
:root[data-mode="social"] .chan.live { color: #23a55a; }

:root[data-mode="social"] .voice-roster { padding-left: 10px; gap: 4px; margin-top: 4px; }

:root[data-mode="social"] .dc-me {
  flex: 0 0 auto;
  background: #0e0f14;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

:root[data-mode="social"] .dc-me .avatar.tiny {
  width: 32px;
  height: 32px;
  margin: 0;
  vertical-align: 0;
  flex: 0 0 auto;
}

:root[data-mode="social"] .dc-me-name {
  flex: 1 1 auto;
  color: #f4f4f8;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-mode="social"] .dc-icon {
  border: 0;
  background: none;
  color: #b5bac1;
  font-size: 17px;
  line-height: 1;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}
:root[data-mode="social"] .dc-icon:hover { background: #1a1b22; color: #f4f4f8; }

:root[data-mode="social"] .dc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #101116;
}

:root[data-mode="social"] .dc-head {
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #1f2023;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  min-width: 0;
}

:root[data-mode="social"] .dc-hash { color: #80848e; font-size: 20px; font-weight: 400; }
:root[data-mode="social"] .dc-chan-name { color: #f4f4f8; font-weight: 600; font-size: 15px; }
:root[data-mode="social"] .dc-head-gap { flex: 1 1 auto; }
:root[data-mode="social"] .dc-head .who { font-size: 12px; color: #9a9aa8; white-space: nowrap; }

:root[data-mode="social"] .dc-pill {
  font-size: 12px;
  color: #b5bac1;
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
:root[data-mode="social"] .dc-pill:hover { background: #1a1b22; color: #f4f4f8; }

:root[data-mode="social"] .dc-members {
  flex: 0 0 216px;
  background: #14151b;
  padding: 16px 10px;
  overflow-y: auto;
}

:root[data-mode="social"] .dc-compose {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 16px 8px;
  background: #14151b;
  border-radius: 8px;
  padding: 0 6px;
}

:root[data-mode="social"] .dc-compose .input.flat {
  background: none;
  border: 0;
  flex: 1 1 auto;
  padding: 12px 8px;
}
:root[data-mode="social"] .dc-compose .input.flat:focus { outline: none; border: 0; }

:root[data-mode="social"] .dc-attach,
:root[data-mode="social"] .dc-send {
  border: 0;
  background: none;
  color: #b5bac1;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
}
:root[data-mode="social"] .dc-attach:hover,
:root[data-mode="social"] .dc-send:hover { color: #f4f4f8; }

:root[data-mode="social"] .dc-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 8px;
  padding: 10px;
  background: #14151b;
  border: 1px solid #1f2023;
  border-radius: 8px;
}

:root[data-mode="social"] .dc-pending-pic {
  max-height: 96px;
  max-width: 160px;
  border-radius: 6px;
  display: block;
}

:root[data-mode="social"] .msg-shot {
  grid-column: 2 / -1;
  max-width: min(380px, 100%);
  max-height: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
  cursor: zoom-in;
  background: #14151b;
}

:root[data-mode="social"] .dc-main .status { margin: 0 16px 10px; min-height: 16px; font-size: 12px; }

@media (max-width: 860px) {
  :root[data-mode="social"] .dc-members { display: none; }
}

@media (max-width: 620px) {
  :root[data-mode="social"] .dc { flex-direction: column; height: auto; }
  :root[data-mode="social"] .dc-rail { flex-direction: row; flex-basis: auto; padding: 8px 12px; }
  :root[data-mode="social"] .dc-side { flex-basis: auto; }
  :root[data-mode="social"] .dc-chans { max-height: 200px; }
  :root[data-mode="social"] .log { height: 52vh; }
}

:root[data-mode="social"] .log {
  background: #101116;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
}

:root[data-mode="social"] body,
:root[data-mode="social"] .input,
:root[data-mode="social"] .btn,
:root[data-mode="social"] .chan,
:root[data-mode="social"] .msg {
  font-family: "gg sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  font-weight: 400;
}

:root[data-mode="social"] .welcome,
:root[data-mode="social"] .label,
:root[data-mode="social"] .btn { font-weight: 600; }

:root[data-mode="social"] .log {
  height: min(56vh, 460px);
  gap: 0;
}

:root[data-mode="social"] .msg {
  display: grid;
  grid-template-columns: 40px auto 1fr;
  grid-template-areas:
    "face name time"
    "face body body";
  column-gap: 14px;
  align-items: start;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 4px;
  line-height: 1.45;
  font-size: 15px;
}

:root[data-mode="social"] .msg .avatar.tiny,
:root[data-mode="social"] .msg .avatar {
  grid-area: face;
  width: 40px;
  height: 40px;
  font-size: 17px;
  margin: 2px 0 0;
  vertical-align: 0;
}

:root[data-mode="social"] .msg-name { grid-area: name; margin-right: 0; font-size: 15px; }
:root[data-mode="social"] .msg-body { grid-area: body; }
:root[data-mode="social"] .msg-time { grid-area: time; justify-self: start; align-self: center; margin-left: 8px; }
:root[data-mode="social"] .reacts { grid-column: 2 / -1; margin-top: 5px; }

:root[data-mode="social"] .msg.notice {
  display: block;
  text-align: center;
  padding: 8px 0;
}

:root[data-mode="social"] .msg:hover { background: #2e3035; }
:root[data-mode="social"] .msg-name { color: #f4f4f8; font-weight: 700; }
:root[data-mode="social"] .msg-name::after { content: ""; }
:root[data-mode="social"] .msg.mine .msg-name { color: #9a9aa8; }
:root[data-mode="social"] .msg-body { color: #dfe0e6; }
:root[data-mode="social"] .msg-time { color: #9a9aa8; font-size: 11px; }

:root[data-mode="social"] .msg.notice {
  color: #9a9aa8;
  font-style: italic;
  font-size: 12px;
}

:root[data-mode="social"] .avatar { border-radius: 50%; border: 0; }
:root[data-mode="social"] .avatar.tiny { width: 26px; height: 26px; vertical-align: -8px; }

:root[data-mode="social"] .field { gap: 8px; margin-top: 10px; }

:root[data-mode="social"] .input.flat {
  background: #14151b;
  border: 0;
  border-radius: 8px;
  color: #dfe0e6;
  padding: 11px 14px;
  font-size: 14px;
  letter-spacing: 0;
}

:root[data-mode="social"] .react {
  background: #14151b;
  border-color: #2a2b34;
  border-radius: 8px;
}
:root[data-mode="social"] .react.mine { background: #3c437c; border-color: #ffce49; color: #dfe0e6; }

:root[data-mode="social"] .people span,
:root[data-mode="social"] .voice-who .nick { color: #9a9aa8; font-size: 13px; }

:root[data-mode="social"] .ctx {
  background: #111214;
  border: 1px solid #14151b;
  border-radius: 6px;
}
:root[data-mode="social"] .ctx-item { color: #dfe0e6; font-size: 13px; }
:root[data-mode="social"] .ctx-item:hover { background: #ffce49; color: #0b0b0f; }

@media (max-width: 620px) {
  :root[data-mode="social"] .channels { flex-basis: auto; }
}

:root[data-app="chat"], :root[data-app="chat"] body {
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
}

:root[data-app="chat"] .log {
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  border-radius: 0;
}

:root[data-app="chat"] .dc {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  max-width: none;
}

:root[data-app="chat"] .gate-full {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #101116;
}

:root[data-app="chat"] .gate-box {
  background: #14151b;
  border-radius: 10px;
  padding: 30px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

:root[data-app="chat"] .gate-title { color: #f4f4f8; font-size: 19px; font-weight: 600; }
:root[data-app="chat"] .gate-note { color: #b5bac1; font-size: 13px; }
:root[data-app="chat"] .gate-box .row { margin-top: 0; }

:root[data-app="chat"] .dm-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #9a9aa8;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

:root[data-app="chat"] .dm-row:hover { background: #1a1b22; color: #dfe0e6; }
:root[data-app="chat"] .dm-row.on { background: #23242e; color: #ffffff; }

:root[data-app="chat"] .dm-row .avatar.tiny {
  width: 32px;
  height: 32px;
  margin: 0;
  vertical-align: 0;
  flex: 0 0 auto;
}

:root[data-app="chat"] .dm-row .dm-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root[data-app="chat"] .dm-row .dm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f23f43;
  flex: 0 0 auto;
}

:root[data-app="chat"] .dm-empty {
  font-size: 12px;
  line-height: 1.6;
  padding: 8px;
  color: #61626f;
}

:root[data-app="chat"] .dc-orb.nudged { box-shadow: 0 0 0 3px #f23f43; }

@media (max-width: 620px) {
  :root[data-app="chat"] .dc { flex-direction: row; height: 100dvh; }
  :root[data-app="chat"] .dc-rail { flex-direction: column; flex-basis: 56px; padding: 8px 0; }
  :root[data-app="chat"] .dc-orb { width: 40px; height: 40px; font-size: 15px; }
  :root[data-app="chat"] .dc-side { flex-basis: 150px; }
  :root[data-app="chat"] .dc-chans { max-height: none; }
  :root[data-app="chat"] .log { height: auto; flex: 1 1 auto; }
}

:root[data-app="chat"] .dc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

:root[data-app="chat"] .dc-panel {
  width: min(520px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #101116;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

:root[data-app="chat"] .dc-panel.narrow { width: min(400px, 100%); }

:root[data-app="chat"] .dc-panel-body .about {
  margin-top: 0;
  background: #0e0f14;
  border: 0;
  border-radius: 6px;
  color: #dfe0e6;
  font-size: 13px;
}

:root[data-app="chat"] button.msg-name {
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #f4f4f8;
  padding: 0;
  cursor: pointer;
}
:root[data-app="chat"] button.msg-name:hover { text-decoration: underline; }

:root[data-app="chat"] .dc-panel-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: #14151b;
  border-bottom: 1px solid #1f2023;
}

:root[data-app="chat"] .dc-tab {
  border: 0;
  background: none;
  color: #9a9aa8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
  cursor: pointer;
}
:root[data-app="chat"] .dc-tab:hover { background: #1a1b22; color: #dfe0e6; }
:root[data-app="chat"] .dc-tab.on { background: #23242e; color: #ffffff; }

:root[data-app="chat"] .dc-panel-body {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

:root[data-app="chat"] .dc-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #14151b;
  border-radius: 8px;
  padding: 16px;
}

:root[data-app="chat"] .dc-card .avatar.big {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 0;
}

:root[data-app="chat"] .dc-card-side { flex: 1 1 auto; min-width: 0; }
:root[data-app="chat"] .dc-card-name { color: #f4f4f8; font-size: 17px; font-weight: 600; }
:root[data-app="chat"] .dc-card-note { color: #9a9aa8; font-size: 12px; margin-top: 5px; }
:root[data-app="chat"] .dc-card .row { margin-top: 12px; }

:root[data-app="chat"] .dc-panel-body .input.area {
  margin-top: 0;
  flex: none;
  width: 100%;
  min-height: 92px;
  background: #0e0f14;
  border: 0;
  border-radius: 6px;
  color: #dfe0e6;
}

:root[data-app="chat"] .dc-panel-body .chan-head { margin-top: 6px; }
:root[data-app="chat"] .dc-panel-body .status { margin-top: 0; min-height: 16px; font-size: 12px; }
:root[data-app="chat"] .dc-panel-body .field { margin-top: 0; }

:root[data-app="chat"] .dc-panel-body .input.flat {
  background: #0e0f14;
  border: 0;
  border-radius: 6px;
  color: #dfe0e6;
}

:root[data-app="chat"] .dc-panel-body .mate-row {
  background: #14151b;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
}

:root[data-app="chat"] .dc-panel-body .mate {
  background: none;
  border: 0;
  padding: 0;
  color: #f4f4f8;
  font-size: 14px;
}

:root[data-app="chat"] .dc-panel-body .mate-list { margin-top: 0; }
:root[data-app="chat"] .dc-panel-body .btn { border-radius: 4px; font-size: 12px; }
