/* ============================================================
   《荒诞面试》· 大厅 / 联机版共享样式（配合 style.css 白名单放行）
   ============================================================ */
:root {
  --bg: #121212; --card: #1a1a1a; --card2: #1f1f1f; --ink: #e8e8e8;
  --muted: #9a9a9a; --dim: #6f6f6f; --accent: #6c8cff; --line: #2e2e2e;
  --warn: #ffd152; --ok: #57d98c; --danger: #ff6b6b;
  --seeker: #6c8cff; --recruiter: #ffb457;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh; display: flex; justify-content: center; padding: 20px 14px 40px;
  -webkit-text-size-adjust: 100%;
}
.wrap { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }

.section { display: flex; flex-direction: column; gap: 6px; }
.strong { font-size: 16px; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.small { color: var(--dim); font-size: 12px; }
.err { color: var(--danger); font-size: 13px; line-height: 1.6; }
.ok { color: var(--ok); font-size: 13px; }
.hr { height: 1px; background: var(--line); margin: 4px 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.card li { font-size: 13px; line-height: 1.6; color: var(--ink); }
.card .cap { font-size: 12px; color: var(--dim); }

.btn {
  background: var(--accent); color: #0b0b0b; border: none; border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  text-align: left; transition: transform .06s, opacity .15s; width: 100%; line-height: 1.5;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn.card { background: var(--card2); color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.btn.q { background: var(--card2); color: var(--ink); border: 1px dashed var(--line); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.btn.warn { background: var(--warn); color: #201a00; }
.btn.good { background: var(--ok); color: #04160c; }
.btn.bad { background: var(--danger); color: #1d0505; }
.btn.disabled, .btn:disabled { opacity: .32; cursor: not-allowed; pointer-events: none; }
.ops { display: flex; flex-direction: column; gap: 8px; }
.ops.row { flex-direction: row; }
.ops.row .btn { text-align: center; }
.frank { float: right; color: var(--dim); font-size: 12px; font-weight: 400; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.room { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 4px; color: var(--accent); }
.role-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.role-seeker { background: rgba(108,140,255,.16); color: var(--seeker); }
.role-recruiter { background: rgba(255,180,87,.16); color: var(--recruiter); }

.waiting { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); animation: blink 1.2s infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .25 } 50% { opacity: 1 } }

.history { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.hist-row { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.6; }
.hist-row b { color: var(--muted); font-weight: 600; }

.story { background: var(--card); border-left: 3px solid var(--warn); padding: 14px; border-radius: 8px; font-size: 15px; line-height: 1.85; }
.headline { margin-top: 8px; color: var(--ok); font-size: 14px; }

.code-input {
  background: var(--card2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px; padding: 12px 14px; font-size: 20px; letter-spacing: 6px;
  text-align: center; text-transform: uppercase; font-family: ui-monospace, Menlo, Consolas, monospace;
  width: 100%;
}
.code-input:focus { outline: none; border-color: var(--accent); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rolecard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rolecard .t { font-size: 13px; font-weight: 600; }
.rolecard .d { font-size: 12px; color: var(--muted); line-height: 1.6; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.snark { background: rgba(255,209,82,.07); border: 1px dashed rgba(255,209,82,.3); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.7; color: #e3cd8a; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: #23283a; color: var(--seeker); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.pill.warnp { background: rgba(255,180,87,.14); color: var(--recruiter); }
.line-share { display: flex; gap: 8px; align-items: center; }
.line-share .btn { width: auto; padding: 10px 14px; font-size: 13px; }
.link { color: var(--accent); font-size: 12px; word-break: break-all; }
@media (max-width: 420px) { .roles { grid-template-columns: 1fr; } }
