#front.menu-front { display: block; padding: 0; background: #0f110f; overflow: hidden; }
.mf-back { position: absolute; inset: 0; background: radial-gradient(90% 70% at 70% 30%, rgba(201, 168, 79, 0.10), transparent 60%), radial-gradient(70% 90% at 0% 100%, rgba(111, 143, 78, 0.14), transparent 60%), linear-gradient(180deg, #161a15, #0b0d0b); }
.mf-back::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px); pointer-events: none; }
.mf-wrap { position: relative; display: grid; grid-template-columns: 260px 1fr; grid-template-rows: minmax(0, 1fr); width: 100%; height: 100%; }
.mf-side { display: flex; flex-direction: column; gap: 28px; padding: 32px 22px; background: rgba(0, 0, 0, 0.35); border-right: 1px solid rgba(255, 255, 255, 0.06); }
.mf-brand { display: flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 900; letter-spacing: 0.22em; color: #efe6c8; }
.mf-brand img { width: 44px; height: 44px; }
.mf-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mf-navbtn { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 0; border-left: 3px solid transparent; background: transparent; color: #b9b4a2; font: 800 15px var(--font); letter-spacing: 0.12em; text-transform: uppercase; text-align: left; text-decoration: none; cursor: pointer; }
.mf-navbtn:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.mf-navbtn.on { color: #fff; border-left-color: #c9a84f; background: rgba(201, 168, 79, 0.08); }
.mf-me { margin-top: auto; display: flex; align-items: center; gap: 10px; color: #b9b4a2; font-weight: 700; }
.mf-me img { width: 34px; height: 34px; border-radius: 6px; }
.mf-online { color: #8f8a78; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.mf-main { min-height: 0; padding: 40px 44px; overflow: auto; }
.mf-btn { min-height: 44px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 3px; background: rgba(255, 255, 255, 0.06); color: #e9e6dc; font: 900 15px var(--font); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.mf-btn.go { background: linear-gradient(180deg, #7ea64e, #5f8638); border-color: #93bd5f; color: #10170a; }
.mf-btn.go:hover { background: linear-gradient(180deg, #8bb45a, #6a9440); }
.mf-btn:disabled { opacity: 0.4; cursor: default; }
.mf-input { width: 100%; height: 44px; padding: 0 14px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.4); color: #e9e6dc; font: 15px var(--font); outline: none; }
.mf-input:focus { border-color: #c9a84f; }
.mf-sign { width: min(380px, 100%); display: grid; gap: 12px; margin-top: 8vh; }
.mf-sign h2, .sb-top h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #efe6c8; }
.mf-link { color: #c9a84f; font-weight: 800; text-decoration: none; font-size: 14px; }
button.mf-link { justify-self: start; padding: 4px 0; border: 0; background: none; font-family: var(--font); cursor: pointer; }
.mf-link:hover { color: #e2c573; }
.mf-sign .mf-input[hidden] { display: none; }
.mf-choice { display: grid; gap: 10px; padding: 12px; color: #d8d3c4; font-size: 13.5px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 3px solid #c9a84f; }
.mf-choice[hidden] { display: none; }
.mf-choice b { color: #efe6c8; font-size: 14px; }
.mf-error { color: #ff9c91; font-size: 14px; min-height: 18px; }
.mf-load { display: grid; gap: 14px; justify-items: start; margin-top: 18vh; max-width: 520px; }
.mf-load-text { color: #b9b4a2; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mf-bar { width: 520px; max-width: 80vw; height: 6px; background: rgba(255, 255, 255, 0.08); }
.mf-bar i { display: block; height: 100%; width: 0; background: #c9a84f; transition: width 0.2s; }
.sb { display: grid; gap: 14px; max-width: 1100px; }
.mf-page { display: contents; }
.sb-top { display: flex; align-items: baseline; gap: 16px; }
.sb-count { color: #8f8a78; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.sb-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.sb-table { display: grid; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.sb-head, .sb-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 0.9fr 1fr 1.2fr 0.7fr; gap: 12px; align-items: center; padding: 10px 14px; }
.sb-head { color: #8f8a78; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.sb-row { border: 0; border-left: 3px solid transparent; background: transparent; color: #d8d3c4; font: 600 14px var(--font); text-align: left; cursor: pointer; }
.sb-row:hover { background: rgba(255, 255, 255, 0.04); }
.sb-row.on { background: rgba(201, 168, 79, 0.10); border-left-color: #c9a84f; }
.sb-name { display: grid; gap: 2px; min-width: 0; }
.sb-name b { color: #fff; font-size: 15px; }
.sb-fest { margin-left: 8px; padding: 1px 7px 2px; border-radius: 4px; background: linear-gradient(180deg, #f08a2e, #d8601a); color: #1c1208; font: 800 11px var(--font); font-style: normal; letter-spacing: 0.03em; vertical-align: 2px; box-shadow: 0 0 10px rgba(255, 128, 32, 0.35); }
.sb-name small, .sb-players small { color: #8f8a78; font-weight: 600; }
.sb-ping.good { color: #9fd67a; }
.sb-ping.ok { color: #e2c573; }
.sb-ping.bad { color: #ff9c91; }
.sb-empty { padding: 20px 14px; color: #8f8a78; }
.sb-detail { display: grid; gap: 14px; padding: 18px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.sb-detail h3 { margin: 0; font-size: 18px; color: #fff; }
.sb-facts { display: grid; gap: 6px; font-size: 13.5px; }
.sb-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sb-facts span { color: #8f8a78; }
.sb-note { padding: 10px 12px; background: rgba(224, 87, 74, 0.08); border: 1px solid rgba(224, 87, 74, 0.3); }
.freelook .cross { opacity: 0.25; }
.mf-dot { width: 7px; height: 7px; margin-left: auto; flex: none; border-radius: 50%; background: #e2c573; box-shadow: 0 0 0 3px rgba(226, 197, 115, 0.18); }
.mf-count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; margin-left: auto; padding: 0 6px; border-radius: 9px; background: #c9a84f; color: #14130d; font: 900 11px var(--font); letter-spacing: 0; }
.mf-btn.sm { min-height: 30px; padding: 0 12px; font-size: 11.5px; letter-spacing: 0.12em; }
.mf-btn.sm:not(.go):not(:disabled):hover { background: rgba(255, 255, 255, 0.11); }
.mf-btn.warn { border-color: rgba(224, 87, 74, 0.6); background: rgba(224, 87, 74, 0.16); color: #ffb3aa; }
.mf-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mf-gap { flex: 1; }
.mf-msg { padding: 8px 12px; color: #ff9c91; font-size: 13.5px; background: rgba(224, 87, 74, 0.08); border: 1px solid rgba(224, 87, 74, 0.3); }
.mf-board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; margin-top: 12px; }
.mf-sect { display: grid; gap: 10px; min-width: 0; }
.mf-sect-top { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.mf-sect-top h3 { flex: 1; margin: 0; font-size: 15px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: #efe6c8; }
.nw-list, .pl-list { display: grid; gap: 10px; }
.nw-item { display: grid; gap: 10px; min-width: 0; padding: 16px 18px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 3px solid transparent; }
.nw-item.new, .nw-edit { border-left-color: #c9a84f; }
.nw-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 30px; color: #8f8a78; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.nw-item.new time::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #e2c573; vertical-align: 1px; }
.nw-pin { color: #e2c573; }
.nw-tools { display: flex; gap: 6px; margin-left: auto; }
.nw-body { min-width: 0; color: #d8d3c4; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.nw-body.folded { max-height: 320px; overflow: hidden; }
.nw-more { justify-self: start; padding: 2px 0; border: 0; background: none; color: #c9a84f; font: 800 12.5px var(--font); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.nw-more:hover { color: #e2c573; }
.nw-text { height: 220px; padding: 10px 12px; resize: vertical; font: 13.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; user-select: text; -webkit-user-select: text; }
.nw-preview { max-height: 380px; overflow: auto; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, 0.12); }
.nw-preview:empty { display: none; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 18px 0 8px; color: #efe6c8; font-weight: 900; line-height: 1.25; }
.md h1 { font-size: 21px; letter-spacing: 0.03em; }
.md h2 { font-size: 18px; }
.md h3 { font-size: 16px; }
.md h4, .md h5, .md h6 { font-size: 14.5px; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li + li { margin-top: 3px; }
.md li::marker { color: #c9a84f; }
.md a { color: #e2c573; }
.md strong { color: #fff; }
.md code { padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); font: 13px ui-monospace, "Cascadia Mono", Consolas, monospace; }
.md pre { margin: 0 0 10px; padding: 10px 12px; overflow-x: auto; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.07); }
.md pre code { padding: 0; background: none; }
.md blockquote { margin: 0 0 10px; padding: 2px 0 2px 14px; border-left: 3px solid rgba(201, 168, 79, 0.6); color: #b9b4a2; }
.md hr { margin: 14px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.md .md-table { margin: 0 0 10px; overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 13.5px; }
.md th, .md td { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.md th { color: #efe6c8; background: rgba(255, 255, 255, 0.04); }
.md .md-task { list-style: none; }
.md .md-box { display: inline-block; width: 13px; height: 13px; margin: 0 8px 0 -20px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 2px; vertical-align: -1px; }
.md .md-box.done { background: #7ea64e; border-color: #93bd5f; }
.md .md-box svg { display: none; }
.pl-item { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.pl-q { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.pl-item.over .pl-q { color: #b9b4a2; }
.pl-opts, .pl-make-opts { display: grid; gap: 6px; }
.pl-opt, .pl-bar { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px; background: rgba(255, 255, 255, 0.04); color: #e9e6dc; font: 700 13.5px var(--font); text-align: left; }
button.pl-opt, button.pl-bar { cursor: pointer; }
.pl-opt { padding-top: 8px; padding-bottom: 8px; overflow-wrap: anywhere; }
.pl-opt:hover, button.pl-bar:hover { border-color: rgba(201, 168, 79, 0.6); background: rgba(201, 168, 79, 0.08); }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, 0.08); transition: width 0.3s; }
.pl-bar span, .pl-bar b { position: relative; }
.pl-bar span { flex: 1; min-width: 0; padding: 8px 0; overflow-wrap: anywhere; }
.pl-bar b { color: #b9b4a2; font-variant-numeric: tabular-nums; }
.pl-bar.mine { border-color: #c9a84f; }
.pl-bar.mine i { background: rgba(201, 168, 79, 0.24); }
.pl-bar.mine b { color: #e2c573; }
.pl-foot { color: #8f8a78; font-size: 12.5px; font-weight: 700; }
.pl-make .mf-input { height: 38px; font-size: 14px; }
.pl-make select.mf-input { width: auto; padding: 0 10px; }
select.mf-input option { background: #161a15; color: #e9e6dc; }
.mf-chat { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.mf-dms { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.dm { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 12px; min-height: 0; }
.dm-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.dm-new { position: relative; }
.dm-find { height: 40px; font-size: 14px; user-select: text; -webkit-user-select: text; }
.dm-found { position: absolute; top: 44px; left: 0; right: 0; z-index: 3; display: grid; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.14); background: #121512; }
.dm-found button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border: 0; border-radius: 3px; background: transparent; color: #e9e6dc; font: 700 14px var(--font); text-align: left; cursor: pointer; }
.dm-found button:hover { background: rgba(201, 168, 79, 0.12); }
.dm-found .av, .dm-row .av { border-radius: 6px; flex: none; }
.dm-list { display: grid; align-content: start; flex: 0 1 auto; min-height: 0; overflow-y: auto; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.dm-list:empty { display: none; }
.dm-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: transparent; color: #d8d3c4; font: 600 13px var(--font); text-align: left; cursor: pointer; }
.dm-row:hover { background: rgba(255, 255, 255, 0.04); }
.dm-row.on { border-left-color: #c9a84f; background: rgba(201, 168, 79, 0.10); }
.dm-row-main { display: grid; gap: 3px; min-width: 0; }
.dm-row-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dm-row-top .uname { flex-wrap: nowrap; overflow: hidden; }
.dm-row-top time { flex: none; margin-left: auto; color: #78756a; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.dm-on { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #7bbf4a; box-shadow: 0 0 0 2px rgba(123, 191, 74, 0.2); }
.dm-row-last { overflow: hidden; color: #8f8a78; white-space: nowrap; text-overflow: ellipsis; }
.dm-row.unread .dm-row-last { color: #e9e6dc; }
.dm-row .mf-count { margin-left: 0; }
.mc.dm-thread { grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: 0; }
.dm-thread.idle { visibility: hidden; }
.dm-head { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.dm-back { display: none; }
.dm-shut { padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #8f8a78; font-size: 13.5px; }
.mf-dock { display: none; }
.mf-navbtn[hidden] { display: none; }
@media (min-width: 1000px) {
  .mf-wrap.docked { grid-template-columns: 260px minmax(0, 1fr) 340px; }
  .mf-wrap.docked .mf-main { padding: 40px 28px 40px 36px; }
  .mf-dock { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; height: 100%; padding: 40px 24px 24px 0; overflow: hidden; }
  .mf-dock[hidden] { display: none; }
  .mf-dock .mf-chat { max-width: none; height: 100%; }
  .mf-dock .mc { min-height: 0; }
}
@media (min-width: 1000px) and (max-width: 1499px) {
  .mf-wrap.docked .sb-body { grid-template-columns: minmax(0, 1fr) 250px; }
  .mf-wrap.docked .sb-head, .mf-wrap.docked .sb-row { gap: 8px; padding: 10px 10px; }
}
.mc { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 260px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.mc-list { padding: 8px 0; overflow-y: auto; overscroll-behavior: contain; user-select: text; -webkit-user-select: text; }
.mc-msg { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 6px 42px 6px 14px; }
.mc-msg.cont { padding-top: 1px; }
.mc-msg.cont .mc-av { visibility: hidden; height: 0 !important; }
.mc-msg.cont .mc-head { display: none; }
.mc-msg:hover { background: rgba(255, 255, 255, 0.025); }
.mc-msg.mentioned { background: rgba(201, 168, 79, 0.08); box-shadow: inset 3px 0 #c9a84f; }
.mc-av { border-radius: 6px; }
.mc-main { min-width: 0; }
.mc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.mc-time { color: #78756a; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-text { color: #d8d3c4; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.mc-at { color: #e2c573; font-weight: 700; }
.mc-pic { display: block; width: auto; max-width: min(320px, 100%); height: auto; max-height: 260px; margin-top: 6px; border-radius: 4px; }
.mc-del { position: absolute; top: 6px; right: 10px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #8f8a78; font: 700 17px/1 var(--font); cursor: pointer; opacity: 0; }
.mc-msg:hover .mc-del, .mc-del:focus-visible { opacity: 1; }
.mc-del:hover { color: #ff9c91; background: rgba(224, 87, 74, 0.12); }
.mc-note { padding: 4px 14px 4px 56px; color: #8f8a78; font-size: 13px; font-style: italic; overflow-wrap: anywhere; }
.mc-note.bad { color: #ff9c91; }
.mc-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.mc-input { flex: 1; min-width: 0; height: 42px; user-select: text; -webkit-user-select: text; }
.mc-send { min-height: 42px; padding: 0 20px; }
.mc-picbtn { flex: none; width: 42px; min-height: 42px; padding: 0; font-size: 20px; letter-spacing: 0; }
.mc-picbtn:disabled { opacity: 0.5; cursor: wait; }
.mc-thumb { position: relative; flex: none; width: 42px; height: 42px; }
.mc-thumb img { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; border: 1px solid #c9a84f; }
.mc-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #2a2a24; color: #e9e6dc; font: 700 13px/18px var(--font); cursor: pointer; }
.ib .mc-picbtn { width: 38px; min-height: 38px; padding: 0; font-size: 19px; }
.ib .mc-thumb, .ib .mc-thumb img { width: 38px; height: 38px; }
.mc .uname, .dm .uname { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; row-gap: 3px; min-width: 0; }
.mc .uname .nm, .dm .uname .nm { color: #efe6c8; font-size: 14px; font-weight: 800; }
.crew-tag { display: inline-flex; align-items: center; flex: none; padding: 2px 5px; border-radius: 5px; color: var(--crew, #a9a594); background: color-mix(in srgb, var(--crew, #a9a594) 16%, transparent); font-size: 11px; font-weight: 850; letter-spacing: 0.04em; line-height: 1.4; }
@media (hover: none) {
  .mc-del { opacity: 0.6; }
}
@media (max-width: 860px) {
  .mf-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .mf-side { flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; overflow-x: auto; }
  .mf-nav { flex-direction: row; flex: 1; }
  .mf-me { margin: 0 0 0 auto; }
  .mf-brand { font-size: 22px; }
  .mf-main { padding: 18px 16px; }
  .sb-body { grid-template-columns: 1fr; }
  .sb-head { display: none; }
  .sb-row { grid-template-columns: 1fr auto; }
  .sb-row > span:nth-child(3), .sb-row > span:nth-child(4) { display: none; }
  .mf-side { scrollbar-width: none; }
  .mf-nav { align-items: center; }
  .mf-nav > * { flex: none; white-space: nowrap; }
  .mf-navbtn { padding: 9px 10px; }
  .mf-board { grid-template-columns: 1fr; }
  .nw-item { padding: 14px; }
  .nw-tools { margin-left: 0; }
  .mc-msg { padding-right: 34px; }
  .dm { grid-template-columns: 1fr; }
  .dm.reading .dm-side, .dm:not(.reading) .dm-thread { display: none; }
  .dm-back { display: inline-block; }
}
@media (max-width: 560px) {
  .mf-side { flex-wrap: wrap; row-gap: 10px; padding: 12px 16px 8px; }
  .mf-nav { flex: 1 0 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .mf-nav::-webkit-scrollbar { display: none; }
}
.mf-reports { max-width: 900px; }
.rp-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rp-seg, .rp-sort, .rp-kinds { display: flex; gap: 4px; }
.rp-seg { padding: 3px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.rp-seg button, .rp-sort button, div.rp-kinds:not(.menu-tabs) button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 2px; background: transparent; color: #8f8a78; font: 800 12.5px var(--font); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.rp-seg button:hover, .rp-sort button:hover, div.rp-kinds:not(.menu-tabs) button:hover { color: #e9e6dc; }
.rp-seg button.on, div.rp-kinds:not(.menu-tabs) button.on { background: rgba(201, 168, 79, 0.14); color: #efe6c8; }
.rp-seg .mf-dot { margin-left: 0; }
.rp-sort { margin-left: auto; }
.rp-sort[hidden] { display: none; }
.rp-sort button { min-height: 28px; padding: 0 8px; letter-spacing: 0.1em; }
.rp-sort button.on { color: #e2c573; }
.rp-list { display: grid; gap: 8px; }
.rp-item { display: flex; gap: 14px; min-width: 0; padding: 14px 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 3px solid transparent; }
.rp-item.new { border-left-color: #c9a84f; }
.rp-vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; align-self: flex-start; width: 46px; height: 54px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 3px; background: rgba(255, 255, 255, 0.04); color: #b9b4a2; font: 800 14px var(--font); }
button.rp-vote { cursor: pointer; }
button.rp-vote:hover { border-color: rgba(201, 168, 79, 0.6); color: #efe6c8; }
.rp-vote i { width: 12px; height: 8px; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rp-vote b { font-variant-numeric: tabular-nums; }
.rp-vote.on { border-color: #c9a84f; background: rgba(201, 168, 79, 0.16); color: #e2c573; }
div.rp-vote { opacity: 0.7; }
.rp-main { display: grid; gap: 8px; flex: 1; min-width: 0; }
.rp-title { color: #fff; font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.rp-body { color: #d8d3c4; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.rp-body.folded { max-height: 180px; overflow: hidden; }
.rp-pic { display: block; width: auto; max-width: min(360px, 100%); height: auto; max-height: 280px; margin-top: 8px; border-radius: 3px; white-space: normal; }
.rp-reply { display: grid; gap: 3px; padding: 8px 12px; border-left: 3px solid rgba(111, 168, 220, 0.6); background: rgba(111, 168, 220, 0.07); color: #d8d3c4; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rp-reply b { color: #9cc6ea; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.rp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 22px; color: #8f8a78; font-size: 12.5px; font-weight: 700; }
.rp-meta .mf-btn.sm { min-height: 26px; }
.rp-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); color: #b9b4a2; font-size: 10.5px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.rp-chip.open { background: rgba(201, 168, 79, 0.14); color: #e2c573; }
.rp-chip.fixed { background: rgba(126, 166, 78, 0.18); color: #9fd67a; }
.rp-chip.wontfix { background: rgba(224, 87, 74, 0.14); color: #ff9c91; }
.rp-chip.kind { background: transparent; border: 1px solid rgba(255, 255, 255, 0.14); }
.rp-empty { padding: 26px 16px; color: #8f8a78; text-align: center; background: rgba(0, 0, 0, 0.25); border: 1px dashed rgba(255, 255, 255, 0.08); }
.rp-more { justify-self: start; }
.rp-make { gap: 10px; border-left-color: #c9a84f; }
.rp-make .mf-input { height: 40px; font-size: 14px; }
.rp-make .rp-kinds { padding: 3px; justify-self: start; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.rp-make textarea.rp-text, .rp-game textarea.rp-text { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.45; resize: vertical; font-family: var(--font); }
.rp-text, .rp-make .mf-input, .rp-game .input { user-select: text; -webkit-user-select: text; }
.rp-err { padding: 7px 10px; color: #ff9c91; font-size: 13px; background: rgba(224, 87, 74, 0.08); border: 1px solid rgba(224, 87, 74, 0.3); overflow-wrap: anywhere; }
.rp-err.calm { color: #d8d3c4; background: rgba(111, 168, 220, 0.08); border-color: rgba(111, 168, 220, 0.3); }
.rp-err[hidden] { display: none; }
.rp-picbtn { flex: none; width: 40px; min-height: 40px; padding: 0; font-size: 20px; letter-spacing: 0; }
.rp-make .rp-picbtn { width: 34px; min-height: 30px; font-size: 17px; }
.rp-picbtn[hidden], .rp-thumb[hidden] { display: none; }
.rp-thumb { position: relative; flex: none; width: 40px; height: 40px; }
.rp-make .rp-thumb { width: 34px; height: 34px; }
.rp-thumb img { width: 100%; height: 100%; border-radius: 3px; object-fit: cover; border: 1px solid #c9a84f; }
.rp-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #2a2a24; color: #e9e6dc; font: 700 13px/18px var(--font); cursor: pointer; }
.rp-game { display: grid; gap: 10px; }
.rp-row { display: flex; align-items: center; gap: 8px; }
.menu-tabs:has(> button:nth-child(6)) button { flex: 1 1 auto; padding: 0 4px; }
@media (max-width: 560px) {
  .rp-item { gap: 10px; padding: 12px; }
  .rp-vote { width: 40px; height: 48px; }
  .rp-sort { margin-left: 0; }
}
button.mf-me { width: 100%; min-height: 50px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; background: rgba(255, 255, 255, 0.03); font: 700 14px var(--font); text-align: left; cursor: pointer; }
button.mf-me:hover, button.mf-me[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: rgba(201, 168, 79, 0.45); }
.mf-me .av { flex: none; border-radius: 6px; }
.mf-me span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-caret { flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 6px solid currentColor; opacity: 0.6; }
.mf-acct { position: fixed; z-index: 70; display: grid; gap: 2px; padding: 5px; background: #141713; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.85); }
.mf-acct[hidden] { display: none; }
.mf-acct button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: #e9e6dc; font: 800 12.5px var(--font); letter-spacing: 0.12em; text-transform: uppercase; text-align: left; cursor: pointer; }
.mf-acct button:hover { background: rgba(201, 168, 79, 0.12); color: #fff; }
.mf-acct button.out:hover { background: rgba(224, 87, 74, 0.14); color: #ffb3aa; }
.mf-acct button:disabled { opacity: 0.5; cursor: default; }
.mf-acct-err { padding: 6px 12px 4px; color: #ff9c91; font-size: 12.5px; }
.mf-acct-err[hidden] { display: none; }
.mf-ctl { height: 100%; max-width: none; grid-template-rows: auto minmax(0, 1fr); }
.mf-ctl[hidden] { display: none; }
.mf-ctl .sb-top { align-items: center; flex-wrap: wrap; }
a.mf-btn { display: inline-flex; align-items: center; text-decoration: none; }
.mf-casino { margin-left: auto; }
.mf-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.35); color-scheme: dark; }
.mf-frame[hidden] { display: none; }
.mf-lobby { margin-top: 0; min-height: 0; overflow-y: auto; align-content: start; }
.mf-lobby[hidden] { display: none; }
.nw-none { color: #8f8a78; font-size: 14px; }
.mf-wrap.full .mf-main { padding: 24px 28px; }
@media (min-width: 1000px) {
  .mf-wrap.docked.full { grid-template-columns: 260px minmax(0, 1fr); }
  .mf-wrap.full .mf-dock { display: none; }
}
@media (max-width: 860px) {
  .mf-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .mf-nav::-webkit-scrollbar { display: none; }
  button.mf-me { flex: none; width: auto; min-height: 40px; padding: 4px 10px 4px 4px; }
  .mf-me span { max-width: 130px; }
  .mf-caret { transform: rotate(180deg); }
  .mf-wrap.full .mf-main { padding: 12px 12px 14px; }
}
@media (max-width: 560px) {
  .mf-side > .mf-me { order: 1; }
  .mf-side > .mf-nav { order: 2; }
}
.pf-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-card, .pf-edit { display: grid; gap: 12px; min-width: 0; padding: 18px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.pf-face { justify-self: center; }
.pf-face .av { display: block; border-radius: 8px; }
.pf-who { display: flex; justify-content: center; min-width: 0; }
.pf-who .uname { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.pf-who .nm { color: #efe6c8; font-size: 20px; font-weight: 900; overflow-wrap: anywhere; }
.pf-acts .mf-btn { flex: 1; padding: 0 12px; }
.pf-slots { flex-wrap: wrap; justify-self: start; }
.pf-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.pf-opt { display: grid; place-items: center; padding: 5px; border: 1px solid var(--rar, rgba(255, 255, 255, 0.12)); border-radius: 4px; background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.pf-opt .av { display: block; border-radius: 3px; }
.pf-opt:hover { border-color: rgba(201, 168, 79, 0.6); background: rgba(201, 168, 79, 0.08); }
.pf-opt.on { border-color: #c9a84f; background: rgba(201, 168, 79, 0.16); box-shadow: inset 0 0 0 1px #c9a84f; }
.pf-hue { width: 100%; accent-color: #c9a84f; }
.pf-hue[hidden] { display: none; }
.pf-more { grid-template-columns: minmax(0, 420px); margin-top: 0; }
.pf-pass .mf-input { height: 40px; font-size: 14px; }
@media (max-width: 860px) {
  .pf-body { grid-template-columns: 1fr; }
  .pf-card { justify-items: stretch; }
  .pf-opts { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
  .pf-opt { padding: 3px; }
  .pf-more { grid-template-columns: 1fr; }
}
.iv-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.iv-card, .iv-edit { display: grid; gap: 12px; min-width: 0; padding: 18px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.iv-card { justify-items: center; padding: 22px 18px; }
.iv-face .av { display: block; border-radius: 8px; }
.iv-who { display: flex; justify-content: center; min-width: 0; }
.iv-who .uname { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 7px; min-width: 0; }
.iv-who .nm { color: #efe6c8; font-size: 20px; font-weight: 900; overflow-wrap: anywhere; }
.iv-who .tg { font-size: 13px; }
.iv-kinds { flex-wrap: wrap; justify-self: start; }
.iv-kinds[hidden] { display: none; }
.iv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.iv-opt { display: grid; grid-template-rows: 58px auto; justify-items: center; align-items: center; gap: 4px; min-width: 0; padding: 8px 8px 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: #b9b4a2; font: 800 11.5px var(--font); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.iv-opt:hover:not(:disabled) { border-color: rgba(201, 168, 79, 0.6); background: rgba(201, 168, 79, 0.08); }
.iv-opt.on { border-color: #c9a84f; background: rgba(201, 168, 79, 0.16); box-shadow: inset 0 0 0 1px #c9a84f; color: #efe6c8; }
.iv-opt:disabled { cursor: default; }
.iv-opt:disabled:not(.on) { opacity: 0.5; }
.iv-opt small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
.iv-art { display: grid; place-items: center; max-width: 100%; min-width: 0; }
.iv-art .tg { font-size: 11.5px; }
.iv-art .nm { max-width: 100%; color: #efe6c8; font-size: 18px; font-weight: 900; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.iv-none { position: relative; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.28); border-radius: 50%; }
.iv-none::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.28); transform: rotate(45deg); }
@media (max-width: 860px) {
  .iv-body { grid-template-columns: 1fr; }
  .iv-opts { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
}
.mf-msg.good { color: #b9e19a; background: rgba(126, 166, 78, 0.1); border-color: rgba(126, 166, 78, 0.35); }
.mf-trade .sb-top { align-items: center; }
.td-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #b9b4a2; font: 800 12.5px var(--font); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.td-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #c9a84f; }
.td-asks { display: grid; gap: 6px; }
.td-asks[hidden], .td-cards[hidden] { display: none; }
.td-ask { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; overflow: hidden; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); border-left: 3px solid #c9a84f; }
.td-ask .av { border-radius: 6px; }
.td-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #c9a84f; transform-origin: left center; animation: td-left linear forwards; }
@keyframes td-left { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.td-who { display: grid; gap: 3px; min-width: 0; }
.td-who .uname { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.td-who .nm { overflow: hidden; color: #efe6c8; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.td-note { overflow: hidden; color: #b9b4a2; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.td-cards { position: fixed; right: 16px; top: 16px; z-index: 90; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.td-ask.card { background: #151815; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); }
.td-lobby { display: grid; gap: 10px; }
.td-find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.td-people { display: grid; max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.td-person { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.td-person:last-child { border-bottom: 0; }
.td-person .av { border-radius: 6px; }
.td-state { color: #8f8a78; font: 800 11px var(--font); letter-spacing: 0.1em; text-transform: uppercase; }
.td-empty { padding: 18px 14px; color: #8f8a78; font-weight: 700; }
.td-win { display: grid; gap: 12px; }
.td-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.td-head .av { border-radius: 8px; }
.td-sides { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.td-side { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; padding: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.td-side.mine { border-color: rgba(201, 168, 79, 0.28); }
.td-side-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.td-side-top b { overflow: hidden; color: #efe6c8; font-size: 15px; font-weight: 900; letter-spacing: 0.1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.td-side-top small { color: #8f8a78; font-weight: 700; }
.td-side-top .td-ok { margin-left: auto; padding: 2px 8px; border-radius: 3px; background: rgba(126, 166, 78, 0.2); color: #b9e19a; font: 900 11px var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.td-side-top .td-ok[hidden] { display: none; }
.td-mid { display: grid; align-content: center; justify-items: center; gap: 10px; }
.td-go { min-height: 54px; color: #e2c573; font: 900 46px/54px var(--font); opacity: 0; transition: opacity 0.15s; }
.td-go.on { opacity: 1; }
.td-accept { width: 100%; padding: 0 10px; }
.td-accept.on { background: rgba(201, 168, 79, 0.18); border-color: #c9a84f; color: #efe6c8; }
.td-inv { display: grid; gap: 10px; padding: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.td-kinds { justify-self: start; flex-wrap: wrap; }
.td-kinds[hidden] { display: none; }
.td-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; align-content: start; }
.td-offer { min-height: 118px; }
.td-pick { max-height: min(40vh, 360px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.td-tile { position: relative; display: grid; grid-template-rows: 52px auto; justify-items: center; align-items: center; gap: 4px; min-width: 0; padding: 8px 5px 9px; border: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 3px solid var(--r); border-radius: 4px; background: rgba(255, 255, 255, 0.04); color: #d8d3c4; font: 700 11px var(--font); text-align: center; }
button.td-tile { cursor: pointer; }
button.td-tile:hover { border-color: rgba(201, 168, 79, 0.6); background: rgba(201, 168, 79, 0.08); }
.td-tile.out { opacity: 0.38; }
.td-tile small { max-width: 100%; overflow: hidden; font: inherit; text-overflow: ellipsis; white-space: nowrap; }
.td-n { position: absolute; top: 4px; right: 5px; color: #efe6c8; font: 900 11px var(--font); text-shadow: 0 1px 2px #000; }
.td-art { display: grid; place-items: center; width: 48px; height: 48px; min-width: 0; }
.td-art.skin { border-radius: 6px; background: radial-gradient(ellipse at 50% 40%, var(--p) 0%, var(--i) 48%, transparent 76%); }
.td-art.skin canvas { width: 44px; height: 44px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65)); }
.td-art.tag { width: auto; max-width: 100%; }
.td-art.tag .tg { font-size: 11px; }
.td-art .av { border-radius: 6px; }
.td-sw { position: relative; display: block; width: 40px; height: 40px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px; background: #2b2e32; }
.td-sw.cloth { border-radius: 50% 50% 4px 4px / 22% 22% 4px 4px; }
.td-sw.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 46%, transparent 58%); }
.td-sw.glow { box-shadow: 0 0 9px var(--glow), inset 0 0 6px var(--glow); }
.bx-tradepage .mf-trade { max-width: none; }
@media (max-width: 860px) {
  .td-sides { grid-template-columns: 1fr; }
  .td-mid { grid-template-columns: 1fr auto; align-items: center; justify-items: stretch; }
  .td-go { min-height: 40px; font-size: 34px; line-height: 40px; text-align: center; }
}
@media (max-width: 560px) {
  .td-find { grid-template-columns: 1fr; }
  .td-ask { gap: 8px; padding: 10px; }
  .td-ask .mf-btn.sm { padding: 0 9px; }
  .td-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}
