
:root {
  --bg: #11100d;
  --panel: #1b1914;
  --panel2: #242118;
  --gold: #d8b66b;
  --gold-light: #f0dba6;
  --text: #f7f3ea;
  --muted: #a9a397;
  --border: rgba(216, 182, 107, .2);
  --red: #ef7777;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0, #282116 0, var(--bg) 55%);
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 76px; padding: 0 max(22px, calc((100vw - 1160px)/2));
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); background: rgba(17,16,13,.9);
}
.logo { color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 900; letter-spacing: .16em; }
.logo span { color: var(--gold); }
.anonymous { font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #83d69d; margin-right: 8px; }
.layout { max-width: 1050px; width: calc(100% - 32px); margin: auto; padding: 52px 0 70px; }
.intro { text-align: center; margin-bottom: 32px; }
.eyebrow { color: var(--gold); font-size: .7rem; letter-spacing: .19em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.08; letter-spacing: -.045em; margin: 15px 0; }
h1 span { color: var(--gold-light); font-family: Georgia, serif; font-weight: 400; font-style: italic; }
.intro-text { color: var(--muted); max-width: 500px; margin: 0 auto; }
.panel {
  width: min(100%, 620px); margin: 0 auto 22px; padding: 27px;
  background: linear-gradient(145deg, rgba(36,33,26,.98), rgba(25,24,20,.98));
  border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 18px 65px rgba(0,0,0,.2);
}
.panel-title { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.gold-icon { color: var(--gold); font-size: 1.7rem; }
h2 { margin: 0 0 3px; font-size: 1.25rem; }
.panel-title p { margin: 0; color: var(--muted); font-size: .88rem; }
label { display: block; font-size: .85rem; margin: 15px 0 7px; color: #e5dfd2; }
select, input {
  width: 100%; min-width: 0; border-radius: 6px; padding: 12px 13px;
  color: var(--text); background: #12110e; border: 1px solid #3d382c;
  outline: none;
}
select:focus, input:focus { border-color: var(--gold); }
.button {
  border: 1px solid var(--gold); border-radius: 6px; padding: 11px 16px;
  font-weight: 750; transition: .18s ease;
}
.button.primary { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1a150b; }
.button.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.outline { color: var(--gold-light); background: transparent; }
.button.outline:hover { background: rgba(216,182,107,.1); }
.button.small { padding: 8px 11px; font-size: .8rem; }
#findBtn { width: 100%; margin-top: 23px; padding: 14px; }
#findBtn:disabled, button:disabled { opacity: .5; cursor: not-allowed; }
.tiny { color: var(--muted); font-size: .75rem; margin: 13px 0 0; }
.hidden { display: none !important; }
.chat { width: min(100%, 850px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--border); }
.online-avatar {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: #332b1c; border: 1px solid var(--gold);
  color: var(--gold-light); font-size: 1.2rem;
}
.peer-info { flex: 1; min-width: 0; }
.peer-info strong, .peer-info span { display: block; }
.peer-info span { font-size: .78rem; color: #9dd9a8; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 17px 0 10px; }
.media-box {
  position: relative; aspect-ratio: 16/9; min-height: 130px; overflow: hidden;
  background: #0b0b09; border: 1px solid var(--border); border-radius: 7px;
}
.media-box video { width: 100%; height: 100%; object-fit: cover; }
.media-label {
  position: absolute; bottom: 8px; left: 8px; background: #000a;
  padding: 3px 7px; font-size: .65rem; letter-spacing: .1em;
}
.media-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 17px; }
.messages {
  height: 280px; overflow-y: auto; background: #11100d;
  border: 1px solid #302c22; border-radius: 7px; padding: 13px;
}
.system-message { color: var(--muted); font-size: .78rem; text-align: center; padding: 8px; }
.message { width: fit-content; max-width: 85%; margin: 10px 0; padding: 9px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.message small { display: block; font-size: .68rem; color: var(--gold-light); margin-bottom: 3px; }
.message.mine { margin-left: auto; background: #44371e; }
.message.theirs { margin-right: auto; background: #26241f; }
.message-form { display: flex; gap: 9px; margin-top: 10px; }
.message-form input { flex: 1; }
.chat-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.text-button { border: 0; background: none; color: var(--gold-light); padding: 5px 0; font-size: .82rem; }
.text-button:hover { text-decoration: underline; }
.text-button.danger { color: var(--red); }
.status-card {
  width: min(100%, 620px); margin: 22px auto 0; display: flex; gap: 15px;
  padding: 18px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(27,25,20,.65);
}
.status-symbol { color: var(--gold); font-size: 1.5rem; }
.status-card strong { font-size: .9rem; }
.status-card p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
footer {
  border-top: 1px solid var(--border); padding: 20px max(20px, calc((100vw - 1050px)/2));
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #827d72; font-size: .75rem;
}
@media (max-width: 600px) {
  .topbar { height: 64px; padding: 0 15px; }
  .anonymous { font-size: .6rem; letter-spacing: .04em; }
  .layout { width: calc(100% - 22px); padding: 35px 0 45px; }
  .panel { padding: 18px; }
  .chat-head { flex-wrap: wrap; }
  .chat-head .button { margin-left: auto; }
  .media-grid { gap: 7px; }
  .media-box { min-height: 100px; }
  .messages { height: 250px; }
  .message-form { gap: 6px; }
  .message-form .button { padding: 10px; }
  footer { padding: 18px; }
}
